Class BaseShellViewModel
Class BaseShellViewModel. Implements the ViewModel Implements the IShellViewModel
Inherited Members
Namespace: ISynergy.Framework.UI.ViewModels.Base
Assembly: ISynergy.Framework.UI.dll
Syntax
public abstract class BaseShellViewModel : ViewModel, IShellViewModel, IViewModel, ICleanup
Constructors
View SourceBaseShellViewModel(IContext, IBaseCommonServices, IBaseApplicationSettingsService, IAuthenticationService, ILogger, IThemeService, ILocalizationService)
Initializes a new instance of the BaseShellViewModel class.
Declaration
protected BaseShellViewModel(IContext context, IBaseCommonServices commonServices, IBaseApplicationSettingsService applicationSettingsService, IAuthenticationService authenticationService, ILogger logger, IThemeService themeService, ILocalizationService LocalizationService)
Parameters
Type | Name | Description |
---|---|---|
IContext | context | The context. |
IBaseCommonServices | commonServices | The common services. |
IBaseApplicationSettingsService | applicationSettingsService | The settings services. |
IAuthenticationService | authenticationService | |
ILogger | logger | The logger factory. |
IThemeService | themeService | The theme selector service. |
ILocalizationService | LocalizationService | The localization functions. |
Fields
View Source_applicationSettingsService
The settings service.
Declaration
protected readonly IBaseApplicationSettingsService _applicationSettingsService
Field Value
Type | Description |
---|---|
IBaseApplicationSettingsService |
_authenticationService
Authentication service.
Declaration
protected readonly IAuthenticationService _authenticationService
Field Value
Type | Description |
---|---|
IAuthenticationService |
_localizationService
The localization functions
Declaration
protected readonly ILocalizationService _localizationService
Field Value
Type | Description |
---|---|
ILocalizationService |
_themeService
The theme selector
Declaration
protected readonly IThemeService _themeService
Field Value
Type | Description |
---|---|
IThemeService |
Properties
View SourceBackgroundCommand
Gets or sets the background command.
Declaration
public AsyncRelayCommand BackgroundCommand { get; }
Property Value
Type | Description |
---|---|
AsyncRelayCommand | The background command. |
Caption
Gets or sets the Caption property value.
Declaration
public string Caption { get; set; }
Property Value
Type | Description |
---|---|
System.String | The caption. |
ColorCommand
Gets or sets the color command.
Declaration
public AsyncRelayCommand ColorCommand { get; }
Property Value
Type | Description |
---|---|
AsyncRelayCommand | The color command. |
FeedbackCommand
Gets or sets the feedback command.
Declaration
public AsyncRelayCommand FeedbackCommand { get; }
Property Value
Type | Description |
---|---|
AsyncRelayCommand | The feedback command. |
HelpCommand
Gets or sets the help command.
Declaration
public AsyncRelayCommand HelpCommand { get; }
Property Value
Type | Description |
---|---|
AsyncRelayCommand | The help command. |
IsUpdateAvailable
Gets or sets the IsUpdateAvailable property value.
Declaration
public bool IsUpdateAvailable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
LanguageCommand
Gets or sets the language command.
Declaration
public AsyncRelayCommand LanguageCommand { get; }
Property Value
Type | Description |
---|---|
AsyncRelayCommand | The language command. |
LastSelectedItem
Gets or sets the LastSelectedItem property value.
Declaration
public NavigationItem LastSelectedItem { get; set; }
Property Value
Type | Description |
---|---|
NavigationItem | The last selected item. |
LoginCommand
Gets or sets the login command.
Declaration
public AsyncRelayCommand LoginCommand { get; }
Property Value
Type | Description |
---|---|
AsyncRelayCommand | The login command. |
PrimaryItems
Gets or sets the PrimaryItems property value.
Declaration
public ObservableCollection<NavigationItem> PrimaryItems { get; set; }
Property Value
Type | Description |
---|---|
ObservableCollection<NavigationItem> | The primary items. |
Query
Gets or sets the Query property value.
Declaration
public string Query { get; set; }
Property Value
Type | Description |
---|---|
System.String | The query. |
RestartUpdateCommand
Gets or sets the restart update command.
Declaration
public AsyncRelayCommand RestartUpdateCommand { get; }
Property Value
Type | Description |
---|---|
AsyncRelayCommand | The restart update command. |
SecondaryItems
Gets or sets the SecondaryItems property value.
Declaration
public ObservableCollection<NavigationItem> SecondaryItems { get; set; }
Property Value
Type | Description |
---|---|
ObservableCollection<NavigationItem> | The primary items. |
SelectedItem
Gets or sets the SelectedItem property value.
Declaration
public NavigationItem SelectedItem { get; set; }
Property Value
Type | Description |
---|---|
NavigationItem | The selected item. |
SettingsCommand
Gets or sets the settings command.
Declaration
public AsyncRelayCommand SettingsCommand { get; }
Property Value
Type | Description |
---|---|
AsyncRelayCommand | The settings command. |
Width
Gets or sets the Width property value.
Declaration
public double Width { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The width. |
Methods
View SourceDispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
View SourceOpenColorsAsync()
Opens the colors asynchronous.
Declaration
protected virtual Task OpenColorsAsync()
Returns
Type | Description |
---|---|
Task | Task. |
OpenFeedbackAsync()
open feedback as an asynchronous operation.
Declaration
protected virtual Task OpenFeedbackAsync()
Returns
Type | Description |
---|---|
Task |
OpenHelpAsync()
Opens the help asynchronous.
Declaration
protected virtual Task OpenHelpAsync()
Returns
Type | Description |
---|---|
Task | Task. |
OpenLanguageAsync()
Opens the language asynchronous.
Declaration
protected virtual Task OpenLanguageAsync()
Returns
Type | Description |
---|---|
Task | Task. |
OpenSettingsAsync()
Opens the settings asynchronous.
Declaration
protected abstract Task OpenSettingsAsync()
Returns
Type | Description |
---|---|
Task | Task. |
PopulateNavItems()
Populates the nav items.
Declaration
protected abstract void PopulateNavItems()
RestartApplicationAsync()
restart application as an asynchronous operation.
Declaration
protected virtual Task RestartApplicationAsync()
Returns
Type | Description |
---|---|
Task |
ShowDialogRestartAfterUpdateAsync()
Shows the dialog restart after update asynchronous.
Declaration
protected Task ShowDialogRestartAfterUpdateAsync()
Returns
Type | Description |
---|---|
Task | Task. |
SignOutAsync()
Sign out.
Declaration
protected virtual Task SignOutAsync()
Returns
Type | Description |
---|---|
Task |