Table of Contents

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
PropertyChangedBase
MainMenuSettingsViewModel
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

MainMenuSettingsViewModel(IThemeManager, string[])

Initializes a new instance of the MainMenuSettingsViewModel class.

[ImportingConstructor]
public MainMenuSettingsViewModel(IThemeManager themeManager, string[] cultureNames)

Parameters

themeManager IThemeManager

Theme manager that provides themes.

cultureNames string[]

Culture tags of available cultures.

Fields

CultureContractName

public const string CultureContractName = "CultureName"

Field Value

string

Properties

AutoHideMainMenu

Gets or sets a value indicating whether the main menu is hidden.

public bool AutoHideMainMenu { get; set; }

Property Value

bool

Languages

Gets the available languages.

public IEnumerable<string> Languages { get; }

Property Value

IEnumerable<string>

SelectedLanguage

Gets or sets the selected language.

public string SelectedLanguage { get; set; }

Property Value

string

SelectedTheme

Gets the selected theme.

public ITheme SelectedTheme { get; set; }

Property Value

ITheme

SettingsPageName

Gets the translated settings page name.

public string SettingsPageName { get; }

Property Value

string

SettingsPagePath

Gets the translated settings page path.

public string SettingsPagePath { get; }

Property Value

string

Themes

Gets the available themes.

public IEnumerable<ITheme> Themes { get; }

Property Value

IEnumerable<ITheme>

Methods

ApplyChanges()

Applies the settings.

public void ApplyChanges()

Initialize()

Initializes the class.

public void Initialize()