C# Class System.Windows.Mvvm.Sample.ViewModels.MainWindowViewModel

Represents the view model for the main window.
Inheritance: System.Windows.Mvvm.Services.Navigation.ViewModel
Datei anzeigen Open project: lecode-official/mvvm-framework

Public Methods

Method Description
MainWindowViewModel ( ApplicationService applicationService ) : System.Threading.Tasks

Initializes a new MainWindowViewModel instance.

OnActivateAsync ( ) : System.Threading.Tasks.Task

Is called when the view model is created. Initializes the commands of the view model.

Method Details

MainWindowViewModel() public method

Initializes a new MainWindowViewModel instance.
public MainWindowViewModel ( ApplicationService applicationService ) : System.Threading.Tasks
applicationService System.Windows.Mvvm.Services.Application.ApplicationService The application service, which can be used to manage the application lifecycle.
return System.Threading.Tasks

OnActivateAsync() public method

Is called when the view model is created. Initializes the commands of the view model.
public OnActivateAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task