C# Class WinRTXamlToolkit.Controls.AlternativePage

Inheritance: Windows.UI.Xaml.Controls.UserControl
Datei anzeigen Open project: xyzzer/WinRTXamlToolkit Class Usage Examples

Public Properties

Property Type Description
FrameProperty Windows.UI.Xaml.DependencyProperty
NavigationCacheModeProperty Windows.UI.Xaml.DependencyProperty
NavigationStateProperty Windows.UI.Xaml.DependencyProperty
PageTransitionProperty Windows.UI.Xaml.DependencyProperty
ShouldWaitForImagesToLoadProperty Windows.UI.Xaml.DependencyProperty

Protected Methods

Method Description
OnFrameChanged ( AlternativeFrame oldFrame, AlternativeFrame newFrame ) : void

Provides derived classes an opportunity to handle changes to the Frame property.

OnNavigatedFromAsync ( AlternativeNavigationEventArgs e ) : System.Threading.Tasks.Task

Invoked immediately after the Page is unloaded and is no longer the current source of a parent AlternativeFrame.

OnNavigatedToAsync ( AlternativeNavigationEventArgs e ) : System.Threading.Tasks.Task

Invoked when the Page is loaded and becomes the current source of a parent AlternativeFrame.

OnNavigatingFromAsync ( AlternativeNavigatingCancelEventArgs e ) : System.Threading.Tasks.Task

Invoked immediately before the Page is unloaded and is no longer the current source of a parent AlternativeFrame.

OnNavigatingToAsync ( AlternativeNavigationEventArgs e ) : System.Threading.Tasks.Task

When overriden in child classes - enables to perform limited processing before a navigation progresses.

OnTransitionedFromAsync ( ) : System.Threading.Tasks.Task

Called when the page has transitioned from.

OnTransitionedToAsync ( ) : System.Threading.Tasks.Task

Called when the page is being transitioned to.

OnTransitioningFromAsync ( ) : System.Threading.Tasks.Task

Called when the page is being transitioning from.

OnTransitioningToAsync ( ) : System.Threading.Tasks.Task

When overriden in child classes - enables to perform limited processing before a transition starts.

PreloadAsync ( object parameter ) : System.Threading.Tasks.Task

Preloads page content if the page gets preloaded using AlternativeFrame.Preload() call. Child classes can override this method to provide additional behavior, e.g. initializing page view model based on the parameter.

If another page gets navigated to - the preloaded page will be released or cached depending on its NavigationCacheMode property.

UnloadPreloadedAsync ( ) : System.Threading.Tasks.Task

When overriden in a derived class - unloads the preloaded page data.

Private Methods

Method Description
OnFrameChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the Frame property.

OnNavigatedFromInternalAsync ( AlternativeNavigationEventArgs e ) : System.Threading.Tasks.Task
OnNavigatedToInternalAsync ( AlternativeNavigationEventArgs e ) : System.Threading.Tasks.Task
OnNavigatingFromInternalAsync ( AlternativeNavigatingCancelEventArgs e ) : System.Threading.Tasks.Task
OnNavigatingToInternalAsync ( AlternativeNavigationEventArgs e ) : System.Threading.Tasks.Task

The last call before page transition occurs, but after the page has been added to visual tree. An opportunity to wait for some limited loading to complete before the transition animation is played.

OnTransitionedFromInternalAsync ( ) : System.Threading.Tasks.Task
OnTransitionedToInternalAsync ( ) : System.Threading.Tasks.Task
OnTransitioningFromInternalAsync ( ) : System.Threading.Tasks.Task
OnTransitioningToInternalAsync ( ) : System.Threading.Tasks.Task
PreloadInternalAsync ( object parameter ) : System.Threading.Tasks.Task
UnloadPreloadedInternalAsync ( ) : System.Threading.Tasks.Task

Method Details

OnFrameChanged() protected method

Provides derived classes an opportunity to handle changes to the Frame property.
protected OnFrameChanged ( AlternativeFrame oldFrame, AlternativeFrame newFrame ) : void
oldFrame AlternativeFrame The old Frame value
newFrame AlternativeFrame The new Frame value
return void

OnNavigatedFromAsync() protected method

Invoked immediately after the Page is unloaded and is no longer the current source of a parent AlternativeFrame.
protected OnNavigatedFromAsync ( AlternativeNavigationEventArgs e ) : System.Threading.Tasks.Task
e AlternativeNavigationEventArgs /// Event data that can be examined by overriding code. The event data is representative /// of the navigation that has unloaded the current Page. ///
return System.Threading.Tasks.Task

OnNavigatedToAsync() protected method

Invoked when the Page is loaded and becomes the current source of a parent AlternativeFrame.
protected OnNavigatedToAsync ( AlternativeNavigationEventArgs e ) : System.Threading.Tasks.Task
e AlternativeNavigationEventArgs /// Event data that can be examined by overriding code. The event data is representativeThe instance containing the event data. /// of the pending navigation that will load the current Page. Usually the most /// relevant property to examine is Parameter. ///
return System.Threading.Tasks.Task

OnNavigatingFromAsync() protected method

Invoked immediately before the Page is unloaded and is no longer the current source of a parent AlternativeFrame.
protected OnNavigatingFromAsync ( AlternativeNavigatingCancelEventArgs e ) : System.Threading.Tasks.Task
e AlternativeNavigatingCancelEventArgs /// Event data that can be examined by overriding code. The event data is representative /// of the navigation that will unload the current Page unless canceled. The /// navigation can potentially be canceled by setting Cancel. ///
return System.Threading.Tasks.Task

OnNavigatingToAsync() protected method

When overriden in child classes - enables to perform limited processing before a navigation progresses.
protected OnNavigatingToAsync ( AlternativeNavigationEventArgs e ) : System.Threading.Tasks.Task
e AlternativeNavigationEventArgs The instance containing the event data.
return System.Threading.Tasks.Task

OnTransitionedFromAsync() protected method

Called when the page has transitioned from.
protected OnTransitionedFromAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

OnTransitionedToAsync() protected method

Called when the page is being transitioned to.
protected OnTransitionedToAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

OnTransitioningFromAsync() protected method

Called when the page is being transitioning from.
protected OnTransitioningFromAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

OnTransitioningToAsync() protected method

When overriden in child classes - enables to perform limited processing before a transition starts.
protected OnTransitioningToAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

PreloadAsync() protected method

Preloads page content if the page gets preloaded using AlternativeFrame.Preload() call. Child classes can override this method to provide additional behavior, e.g. initializing page view model based on the parameter.
If another page gets navigated to - the preloaded page will be released or cached depending on its NavigationCacheMode property.
protected PreloadAsync ( object parameter ) : System.Threading.Tasks.Task
parameter object The parameter.
return System.Threading.Tasks.Task

UnloadPreloadedAsync() protected method

When overriden in a derived class - unloads the preloaded page data.
protected UnloadPreloadedAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Property Details

FrameProperty public_oe static_oe property

Frame Dependency Property
public static DependencyProperty,Windows.UI.Xaml FrameProperty
return Windows.UI.Xaml.DependencyProperty

NavigationCacheModeProperty public_oe static_oe property

NavigationCacheMode Dependency Property
public static DependencyProperty,Windows.UI.Xaml NavigationCacheModeProperty
return Windows.UI.Xaml.DependencyProperty

NavigationStateProperty public_oe static_oe property

NavigationState Dependency Property
public static DependencyProperty,Windows.UI.Xaml NavigationStateProperty
return Windows.UI.Xaml.DependencyProperty

PageTransitionProperty public_oe static_oe property

PageTransition Dependency Property
public static DependencyProperty,Windows.UI.Xaml PageTransitionProperty
return Windows.UI.Xaml.DependencyProperty

ShouldWaitForImagesToLoadProperty public_oe static_oe property

ShouldWaitForImagesToLoad Dependency Property
public static DependencyProperty,Windows.UI.Xaml ShouldWaitForImagesToLoadProperty
return Windows.UI.Xaml.DependencyProperty