Class MainMenuSettingsViewModel
- Namespace
- Gemini.Modules.MainMenu.ViewModels
- Assembly
- Gemini.dll
Represents the general settings page.
[Export(typeof(ISettingsEditor))]
public class MainMenuSettingsViewModel : PropertyChangedBase, INotifyPropertyChangedEx, INotifyPropertyChanged, ISettingsEditor
- Inheritance
-
PropertyChangedBaseMainMenuSettingsViewModel
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
MainMenuSettingsViewModel(IThemeManager, string[])
Initializes a new instance of the MainMenuSettingsViewModel class.
[ImportingConstructor]
public MainMenuSettingsViewModel(IThemeManager themeManager, string[] cultureNames)
Parameters
themeManager
IThemeManagerTheme manager that provides themes.
cultureNames
string[]Culture tags of available cultures.
Fields
CultureContractName
Contract name for a available culture (language tag). See https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-lcid/a9eac961-e77d-41a6-90a5-ce1a8b0cdb9c.
public const string CultureContractName = "CultureName"
Field Value
Properties
AutoHideMainMenu
Gets or sets a value indicating whether the main menu is hidden.
public bool AutoHideMainMenu { get; set; }
Property Value
Languages
Gets the available languages.
public IEnumerable<string> Languages { get; }
Property Value
SelectedLanguage
Gets or sets the selected language.
public string SelectedLanguage { get; set; }
Property Value
SelectedTheme
Gets the selected theme.
public ITheme SelectedTheme { get; set; }
Property Value
SettingsPageName
Gets the translated settings page name.
public string SettingsPageName { get; }
Property Value
SettingsPagePath
Gets the translated settings page path.
public string SettingsPagePath { get; }
Property Value
Themes
Gets the available themes.
public IEnumerable<ITheme> Themes { get; }
Property Value
Methods
ApplyChanges()
Applies the settings.
public void ApplyChanges()
Initialize()
Initializes the class.
public void Initialize()