Beispiel #1
0
        /// <summary>
        /// Update the selected item property for each theme/accent when the theme/accent is changed
        /// </summary>
        private void ThemeManager_IsThemeChanged(object sender, OnThemeChangedEventArgs e)
        {
            OnPropertyChanged("CurrentAppTheme");
            OnPropertyChanged("CurrentAppAccent");

            AppThemes.ForEach(t => t.IsSelectedItem    = (t == CurrentAppTheme));
            AccentColors.ForEach(a => a.IsSelectedItem = (a == CurrentAppAccent));
        }