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