C# Class UWP10template.Base.BaseViewModel

The class that every view model must inherit from
Inheritance: ObservableObject
Datei anzeigen Open project: mapaux/UWP10template

Public Methods

Method Description
BaseViewModel ( ) : System

Initializes a new instance of the BaseViewModel class

OnNavigatedFrom ( ) : void

Invoked when the Page of the view model is unloaded

OnNavigatedTo ( object navigationContext ) : void

Invoked when the Page of the view model is loaded

RunOnUIAsync ( DispatchedHandler value ) : System.Threading.Tasks.Task

Runs code asynchronously on the UI Thread

Method Details

BaseViewModel() public method

Initializes a new instance of the BaseViewModel class
public BaseViewModel ( ) : System
return System

OnNavigatedFrom() public method

Invoked when the Page of the view model is unloaded
public OnNavigatedFrom ( ) : void
return void

OnNavigatedTo() public method

Invoked when the Page of the view model is loaded
public OnNavigatedTo ( object navigationContext ) : void
navigationContext object The parameters passed by the previous view model
return void

RunOnUIAsync() public method

Runs code asynchronously on the UI Thread
public RunOnUIAsync ( DispatchedHandler value ) : System.Threading.Tasks.Task
value DispatchedHandler The function to be executed
return System.Threading.Tasks.Task