Example #1
0
 private void SettingsToggle_Checked(object sender, RoutedEventArgs e)
 {
     AnimateDarkModeMenuOpenedStoryBoard.Completed += (o, ea) =>
     {
         DarkModeToggle.Focus();
     };
 }
        public override void OnPageShown()
        {
            LoadingSpinner.Visibility = Visibility.Hidden;

            TransitionToggle.SetChecked(Properties.Settings.Default.DisableSlideTransition);
            FahrenheitToggle.SetChecked(Properties.Settings.Default.UseFahrenheit);
            MinimizeTrayToggle.SetChecked(Properties.Settings.Default.MinimizeTray);
            AutostartToggle.SetChecked(AutoStartHelper.Enabled);
            DarkModeToggle.SetChecked(Properties.Settings.Default.DarkMode);
        }
 private void DarkMode_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     DarkModeToggle.Toggle();
     DarkModeHelper.SetState(DarkModeToggle.IsChecked);
     SaveChanges();
 }