C# Class WindowsApp.Views.NetworkError

An empty page that can be used on its own or navigated to within a Frame.
Inheritance: Windows.UI.Xaml.Controls.Page
显示文件 Open project: MSRCCS/AppSuite Class Usage Examples

Public Methods

Method Description
NetworkError ( ) : System

Constructor

SetError ( String errorString ) : void

sets the error message to be displayed

Protected Methods

Method Description
OnNavigatedFrom ( NavigationEventArgs e ) : void

Invoked when this page is about to be exited.

OnNavigatedTo ( NavigationEventArgs e ) : void

Invoked when this page is about to be displayed in a Frame.

Private Methods

Method Description
NavigationHelper_LoadState ( object sender, LoadStateEventArgs e ) : void

Populates the page with content passed during navigation. Any saved state is also provided when recreating a page from a prior session.

NavigationHelper_SaveState ( object sender, SaveStateEventArgs e ) : void

Preserves state associated with this page in case the application is suspended or the page is discarded from the navigation cache. Values must conform to the serialization requirements of SuspensionManager.SessionState.

returnHome_Click ( object sender, RoutedEventArgs e ) : void

Method Details

NetworkError() public method

Constructor
public NetworkError ( ) : System
return System

OnNavigatedFrom() protected method

Invoked when this page is about to be exited.
protected OnNavigatedFrom ( NavigationEventArgs e ) : void
e Windows.UI.Xaml.Navigation.NavigationEventArgs Event data that describes how this page was exited.
return void

OnNavigatedTo() protected method

Invoked when this page is about to be displayed in a Frame.
protected OnNavigatedTo ( NavigationEventArgs e ) : void
e Windows.UI.Xaml.Navigation.NavigationEventArgs Event data that describes how this page was reached. /// This parameter is typically used to configure the page.
return void

SetError() public static method

sets the error message to be displayed
public static SetError ( String errorString ) : void
errorString String an exception or error thrown by the app
return void