C# Class Caliburn.Micro.FrameAdapter

A basic implementation of INavigationService designed to adapt the Frame control.
Inheritance: INavigationService
Exibir arquivo Open project: dbuksbaum/Learning-Caliburn.Micro Class Usage Examples

Public Methods

Method Description
FrameAdapter ( Frame frame ) : System

Creates an instance of FrameAdapter

GoBack ( ) : void

Navigates back.

GoForward ( ) : void

Navigates forward.

Navigate ( Uri source ) : bool

Navigates to the specified Uri.

StopLoading ( ) : void

Stops the loading process.

Protected Methods

Method Description
OnNavigated ( object sender, NavigationEventArgs e ) : void

Occurs after navigation

OnNavigating ( object sender, NavigatingCancelEventArgs e ) : void

Occurs before navigation

TryInjectQueryString ( object viewModel, object view ) : void

Attempts to inject query string parameters from the view into the view model.

Method Details

FrameAdapter() public method

Creates an instance of FrameAdapter
public FrameAdapter ( Frame frame ) : System
frame Windows.UI.Xaml.Controls.Frame The frame to represent as a .
return System

GoBack() public method

Navigates back.
public GoBack ( ) : void
return void

GoForward() public method

Navigates forward.
public GoForward ( ) : void
return void

Navigate() public method

Navigates to the specified Uri.
public Navigate ( Uri source ) : bool
source Uri The to navigate to.
return bool

OnNavigated() protected method

Occurs after navigation
protected OnNavigated ( object sender, NavigationEventArgs e ) : void
sender object The event sender.
e Windows.UI.Xaml.Navigation.NavigationEventArgs The event args.
return void

OnNavigating() protected method

Occurs before navigation
protected OnNavigating ( object sender, NavigatingCancelEventArgs e ) : void
sender object The event sender.
e Windows.UI.Xaml.Navigation.NavigatingCancelEventArgs The event args.
return void

StopLoading() public method

Stops the loading process.
public StopLoading ( ) : void
return void

TryInjectQueryString() protected method

Attempts to inject query string parameters from the view into the view model.
protected TryInjectQueryString ( object viewModel, object view ) : void
viewModel object The view model.
view object The view.
return void