Generated by DocFX

Class BaseShellViewModel

Class BaseShellViewModel. Implements the ViewModel Implements the IShellViewModel

Inheritance
System.Object
ViewModel
BaseShellViewModel
Implements
IShellViewModel
IViewModel
IObservableClass
ICleanup
Inherited Members
ViewModel.Cancelled
ViewModel.Closed
ViewModel.OnCancelled(EventArgs)
ViewModel.OnClosed(EventArgs)
ViewModel.Context
ViewModel.BaseCommonServices
ViewModel.Logger
ViewModel.CloseCommand
ViewModel.Title
ViewModel.IsInitialized
ViewModel.IsRefreshing
ViewModel.Parameter
ViewModel.InitializeAsync()
ViewModel.GetEnumDescription(Enum)
ViewModel.OnPropertyChanged(Object, PropertyChangedEventArgs)
ViewModel.CanClose
ViewModel.IsCancelled
ViewModel.Cleanup()
ViewModel.Cancel()
ViewModel.Close()
Namespace: ISynergy.Framework.UI.ViewModels.Base
Assembly: ISynergy.Framework.UI.dll
Syntax
public abstract class BaseShellViewModel : ViewModel, IShellViewModel, IViewModel, ICleanup

Constructors

View Source

BaseShellViewModel(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
View Source

_authenticationService

Authentication service.

Declaration
protected readonly IAuthenticationService _authenticationService
Field Value
Type Description
IAuthenticationService
View Source

_localizationService

The localization functions

Declaration
protected readonly ILocalizationService _localizationService
Field Value
Type Description
ILocalizationService
View Source

_themeService

The theme selector

Declaration
protected readonly IThemeService _themeService
Field Value
Type Description
IThemeService

Properties

View Source

BackgroundCommand

Gets or sets the background command.

Declaration
public AsyncRelayCommand BackgroundCommand { get; }
Property Value
Type Description
AsyncRelayCommand

The background command.

View Source

Caption

Gets or sets the Caption property value.

Declaration
public string Caption { get; set; }
Property Value
Type Description
System.String

The caption.

View Source

ColorCommand

Gets or sets the color command.

Declaration
public AsyncRelayCommand ColorCommand { get; }
Property Value
Type Description
AsyncRelayCommand

The color command.

View Source

FeedbackCommand

Gets or sets the feedback command.

Declaration
public AsyncRelayCommand FeedbackCommand { get; }
Property Value
Type Description
AsyncRelayCommand

The feedback command.

View Source

HelpCommand

Gets or sets the help command.

Declaration
public AsyncRelayCommand HelpCommand { get; }
Property Value
Type Description
AsyncRelayCommand

The help command.

View Source

IsUpdateAvailable

Gets or sets the IsUpdateAvailable property value.

Declaration
public bool IsUpdateAvailable { get; set; }
Property Value
Type Description
System.Boolean

true if this instance is update available; otherwise, false.

View Source

LanguageCommand

Gets or sets the language command.

Declaration
public AsyncRelayCommand LanguageCommand { get; }
Property Value
Type Description
AsyncRelayCommand

The language command.

View Source

LastSelectedItem

Gets or sets the LastSelectedItem property value.

Declaration
public NavigationItem LastSelectedItem { get; set; }
Property Value
Type Description
NavigationItem

The last selected item.

View Source

LoginCommand

Gets or sets the login command.

Declaration
public AsyncRelayCommand LoginCommand { get; }
Property Value
Type Description
AsyncRelayCommand

The login command.

View Source

PrimaryItems

Gets or sets the PrimaryItems property value.

Declaration
public ObservableCollection<NavigationItem> PrimaryItems { get; set; }
Property Value
Type Description
ObservableCollection<NavigationItem>

The primary items.

View Source

Query

Gets or sets the Query property value.

Declaration
public string Query { get; set; }
Property Value
Type Description
System.String

The query.

View Source

RestartUpdateCommand

Gets or sets the restart update command.

Declaration
public AsyncRelayCommand RestartUpdateCommand { get; }
Property Value
Type Description
AsyncRelayCommand

The restart update command.

View Source

SecondaryItems

Gets or sets the SecondaryItems property value.

Declaration
public ObservableCollection<NavigationItem> SecondaryItems { get; set; }
Property Value
Type Description
ObservableCollection<NavigationItem>

The primary items.

View Source

SelectedItem

Gets or sets the SelectedItem property value.

Declaration
public NavigationItem SelectedItem { get; set; }
Property Value
Type Description
NavigationItem

The selected item.

View Source

SettingsCommand

Gets or sets the settings command.

Declaration
public AsyncRelayCommand SettingsCommand { get; }
Property Value
Type Description
AsyncRelayCommand

The settings command.

View Source

Width

Gets or sets the Width property value.

Declaration
public double Width { get; set; }
Property Value
Type Description
System.Double

The width.

Methods

View Source

Dispose(Boolean)

Declaration
protected override void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing
Overrides
ViewModel.Dispose(Boolean)
View Source

OpenColorsAsync()

Opens the colors asynchronous.

Declaration
protected virtual Task OpenColorsAsync()
Returns
Type Description
Task

Task.

View Source

OpenFeedbackAsync()

open feedback as an asynchronous operation.

Declaration
protected virtual Task OpenFeedbackAsync()
Returns
Type Description
Task
View Source

OpenHelpAsync()

Opens the help asynchronous.

Declaration
protected virtual Task OpenHelpAsync()
Returns
Type Description
Task

Task.

View Source

OpenLanguageAsync()

Opens the language asynchronous.

Declaration
protected virtual Task OpenLanguageAsync()
Returns
Type Description
Task

Task.

View Source

OpenSettingsAsync()

Opens the settings asynchronous.

Declaration
protected abstract Task OpenSettingsAsync()
Returns
Type Description
Task

Task.

View Source

PopulateNavItems()

Populates the nav items.

Declaration
protected abstract void PopulateNavItems()
View Source

RestartApplicationAsync()

restart application as an asynchronous operation.

Declaration
protected virtual Task RestartApplicationAsync()
Returns
Type Description
Task
View Source

ShowDialogRestartAfterUpdateAsync()

Shows the dialog restart after update asynchronous.

Declaration
protected Task ShowDialogRestartAfterUpdateAsync()
Returns
Type Description
Task

Task.

View Source

SignOutAsync()

Sign out.

Declaration
protected virtual Task SignOutAsync()
Returns
Type Description
Task

Implements

IShellViewModel
IViewModel
IObservableClass
ICleanup

Extension Methods

Matrix.Replace<T>(T, Object, Object)
Matrix.IsEqual(Object, Object, Decimal, Decimal)
EntityBaseExtensions.HasProperty(Object, String)
ArrayExtensions.Concatenate<T>(T, T[])
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>, Func<TSource, Boolean>)
CollectionExtensions.FromHierarchy<TSource>(TSource, Func<TSource, TSource>)
ObjectExtensions.Clone<T>(T)
ObjectExtensions.To<T>(Object)
ObjectExtensions.To(Object, Type)
ObjectExtensions.HasMethod(Object, String)
ObjectExtensions.AddressOf<T>(T)
ReflectionExtensions.GetIdentityValue<T>(T)
ReflectionExtensions.GetIdentityValue<T, TResult>(T)
ReflectionExtensions.GetIdentityProperty<T>(T)
ReflectionExtensions.HasIdentityProperty<T>(T)
ReflectionExtensions.GetPropertyValue<T, TResult>(T, String, TResult)
ReflectionExtensions.GetPropertyInfo<T, TValue>(T, Expression<Func<T, TValue>>)
ReflectionExtensions.GetTitleValue<T>(T)
ReflectionExtensions.HasParentIdentityProperty<T>(T)
ReflectionExtensions.GetParentIdentityProperty<T>(T)
ReflectionExtensions.IsFreeApplication<T>(T)

See Also

ViewModel
IShellViewModel