C# 클래스 System.Windows.Mvvm.Sample.ViewModels.MainViewModel

Represents the view model for the main view of the application.
상속: System.Windows.Mvvm.Services.Navigation.ViewModel
파일 보기 프로젝트 열기: lecode-official/mvvm-framework

공개 메소드들

메소드 설명
MainViewModel ( NavigationService navigationService, TodoListItemsRepository todoListItemsRepository ) : System.Linq

Initializes a new MainViewModel instance.

OnActivateAsync ( ) : System.Threading.Tasks.Task

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

OnNavigateToAsync ( NavigationEventArgs e ) : System.Threading.Tasks.Task

Is called when the user is navigated to the view of this view model. Loads the todo list items from storage.

메소드 상세

MainViewModel() 공개 메소드

Initializes a new MainViewModel instance.
public MainViewModel ( NavigationService navigationService, TodoListItemsRepository todoListItemsRepository ) : System.Linq
navigationService NavigationService
todoListItemsRepository System.Windows.Mvvm.Sample.Repositories.TodoListItemsRepository The todo list items repository, which can be used to manage the items on the todo list.
리턴 System.Linq

OnActivateAsync() 공개 메소드

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

OnNavigateToAsync() 공개 메소드

Is called when the user is navigated to the view of this view model. Loads the todo list items from storage.
public OnNavigateToAsync ( NavigationEventArgs e ) : System.Threading.Tasks.Task
e System.Windows.Mvvm.Services.Navigation.NavigationEventArgs The navigation arguments, that contain more information about the navigation.
리턴 System.Threading.Tasks.Task