C# Class AppTemplate.ViewModels.Common.PageViewModel

Inheritance: ViewModelBase
Show file Open project: jamesmcroft/Windows-Universal-SplitViewTemplate

Public Methods

Method Description
NavigateBack ( BackRequestedEventArgs args ) : void

Called to request the navigation frame to navigate backwards.

SetPageFrame ( Frame frame ) : void

Sets the navigation page frame.

Protected Methods

Method Description
PageViewModel ( IMessenger messenger, NavigationService navigationService ) : System

Initializes a new instance of the PageViewModel class.

Method Details

NavigateBack() public method

Called to request the navigation frame to navigate backwards.
public NavigateBack ( BackRequestedEventArgs args ) : void
args BackRequestedEventArgs /// The arguments passed from sources requesting to go back (i.e. System back button). ///
return void

PageViewModel() protected method

Initializes a new instance of the PageViewModel class.
protected PageViewModel ( IMessenger messenger, NavigationService navigationService ) : System
messenger IMessenger /// The messenger. ///
navigationService NavigationService /// The navigation Service. ///
return System

SetPageFrame() public method

Sets the navigation page frame.
/// Thrown if any parameter is null. ///
public SetPageFrame ( Frame frame ) : void
frame Windows.UI.Xaml.Controls.Frame /// The frame to set as the navigation frame. ///
return void