Exemple #1
0
        public SettingsControl()
        {
            this.InitializeComponent();
            if (!DesignMode.DesignModeEnabled)
            {
                this.DataContext = SettingsVM = new SettingsViewModel();
            }

            if (DeviceUtil.IsXbox)
            {
                AutoChangeSP.Visibility = Visibility.Collapsed;
            }

            _compactModeOffHintImage = CompactModeOffHintImage.GetVisual();
            _compactModeOnHintImage  = CompactModeOnHintImage.GetVisual();
            _compositor = _compactModeOffHintImage.Compositor;

            _compactModeOffHintImage.ImplicitAnimations = ImplicitAnimationFactory.CreateCommonOpacityAnimationCollection(_compositor);
            _compactModeOnHintImage.ImplicitAnimations  = ImplicitAnimationFactory.CreateCommonOpacityAnimationCollection(_compositor);
        }