Exemple #1
0
 public MainWindow()
 {
     InitializeComponent();
     themeListener           = new ThemeListener();
     currentApplicationTheme = ApplicationTheme.Light;
     followSystemTheme       = true;
 }
Exemple #2
0
 private void ThemeListener_ThemeChanged(ThemeListener sender)
 {
     Dispatcher.Invoke(() => UpdateTheme());
 }