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

Represents a view model for the create todo list item view.
Inheritance: System.Windows.Mvvm.Services.Navigation.ViewModel
Datei anzeigen Open project: lecode-official/mvvm-framework

Public Methods

Method Description
CreateTodoListItemViewModel ( NavigationService navigationService, DialogService dialogService, TodoListItemsRepository todoListItemsRepository ) : System

Initializes a new CreateTodoListItemViewModel instance.

OnActivateAsync ( ) : System.Threading.Tasks.Task

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

Method Details

CreateTodoListItemViewModel() public method

Initializes a new CreateTodoListItemViewModel instance.
public CreateTodoListItemViewModel ( NavigationService navigationService, DialogService dialogService, TodoListItemsRepository todoListItemsRepository ) : System
navigationService NavigationService The navigation service, which is used to navigate between views.
dialogService DialogService The dialog service, which provides access to the various dialogs offered by Windows.
todoListItemsRepository System.Windows.Mvvm.Sample.Repositories.TodoListItemsRepository The todo list items repository, which can be used to manage the items on the todo list.
return System

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