コード例 #1
0
 private void ApplicationThemeComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if ((sender as ComboBox).SelectedItem == null)
     {
         Themes.ApplyWindowsTheme();
         MainWindow.Instance.MainText = (string)Application.Current.FindResource("Options:CurrentThemeRemoved");
     }
     else
     {
         Themes.ApplyTheme((sender as ComboBox).SelectedItem.ToString());
     }
 }