示例#1
0
 private void OnAppSettingsChanged(AppSettingsChangedMessage obj)
 {
     if (obj.PropertyName == nameof(Core.AppSettings.UserRequestedTheme))
     {
         _ = Dispatcher.RunAsync(CoreDispatcherPriority.Normal, UpdateColors);
     }
 }
示例#2
0
 private void OnAppSettingsChanged(AppSettingsChangedMessage msg)
 {
     switch (msg.PropertyName)
     {
     case nameof(AppSettings.UseFontForPreview):
         OnFontPreviewUpdated();
         break;
     }
 }
        private void OnAppSettingsChanged(AppSettingsChangedMessage msg)
        {
            switch (msg.PropertyName)
            {
            case nameof(AppSettings.UseFontForPreview):
                OnFontPreviewUpdated();
                break;

                //case nameof(AppSettings.ApplicationDesignTheme):
                //    UpdateDesignTheme();
                //    break;
            }
        }
        private void OnAppSettingsChanged(AppSettingsChangedMessage msg)
        {
            switch (msg.PropertyName)
            {
            case nameof(AppSettings.UseFontForPreview):
                OnFontPreviewUpdated();
                break;

            case nameof(AppSettings.UserRequestedTheme):
                this.RequestedTheme = ViewModel.Settings.UserRequestedTheme;
                OnPropertyChanged(nameof(ThemeLock));
                break;
            }
        }