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

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

Méthodes publiques

Méthode 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 méthode

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.
Résultat System.Threading.Tasks

OnActivateAsync() public méthode

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