C# 클래스 WinRTXamlToolkit.Controls.AlternativeFrame

상속: Windows.UI.Xaml.Controls.ContentControl
파일 보기 프로젝트 열기: xyzzer/WinRTXamlToolkit 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CacheSizeProperty Windows.UI.Xaml.DependencyProperty
CanGoBackProperty Windows.UI.Xaml.DependencyProperty
CanGoForwardProperty Windows.UI.Xaml.DependencyProperty
CanNavigateProperty Windows.UI.Xaml.DependencyProperty
PagePresenterStyleProperty Windows.UI.Xaml.DependencyProperty
PageTransitionProperty Windows.UI.Xaml.DependencyProperty
ShouldWaitForImagesToLoadProperty DependencyProperty

공개 메소드들

메소드 설명
AlternativeFrame ( ) : System

Initializes a new instance of the AlternativeFrame class.

GetNavigationState ( ) : string

Serializes the Frame navigation history into a string.

Serialization is similar to the one used in the matching Frame class method: 1,TotalPages,BackStackDepth[,SourcePageType_Length,SourcePageType,Parameter_TypeCode,Parameter_Length,Parameter…]

GoBackAsync ( ) : Task

Goes back in history back stack.

GoForwardAsync ( ) : Task

Runs the forward transition.

NavigateAsync ( Type sourcePageType ) : Task

Navigates to source page of the specified type.

NavigateAsync ( Type sourcePageType, object parameter ) : Task

Navigates to source page of the specified type.

PreloadAsync ( Type sourcePageType, object parameter ) : Task

Preloads a page of the specified source page type.

Allows to preload a page before user navigates to it, so if it does get navigated to - shows up quickly. If another page gets navigated to - the preloaded page will be released or cached depending on its NavigationCacheMode property.

SetNavigationStateAsync ( string navigationState ) : Task

Reads and restores the navigation history of a Frame from a provided serialization string.

UnloadAllPreloadedAsync ( ) : Task

Unloads all preloaded pages.

Pages might have been preloaded in the anticipation of the user navigating to them, then a state change might invalidate or reduce the possibility of a navigation request and it might be worth unloading the preloaded pages to release resources that they consumed. The preloaded page will be released or cached depending on its NavigationCacheMode property.

UnloadPreloadedAsync ( Type sourcePageType, object parameter ) : Task

Unloads the preloaded page of a given type and parameter.

A page might have been preloaded in the anticipation of the user navigating to it, then a state change might invalidate or reduce the possibility of a navigation request and it might be worth unloading the preloaded page to release resources that it consumed. The preloaded page will be released or cached depending on its NavigationCacheMode property.

보호된 메소드들

메소드 설명
OnApplyTemplate ( ) : void

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.

OnPagePresenterStyleChanged ( Style oldPagePresenterStyle, Style newPagePresenterStyle ) : void

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

비공개 메소드들

메소드 설명
AddParameterToNavigationStateString ( System.StringBuilder sb, int typeCode, string valueString ) : void
AppendEntryToNavigationStateString ( System.StringBuilder sb, JournalEntry journalEntry ) : void
NavigateCoreAsync ( Type sourcePageType, object parameter, NavigationMode navigationMode ) : Task
OnCacheSizeChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the CacheSize property.

OnCacheSizeChanged ( int oldCacheSize, int newCacheSize ) : void

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

OnNavigatedAsync ( AlternativeNavigationEventArgs args ) : System.Threading.Tasks.Task
OnNavigatingAsync ( AlternativeNavigatingCancelEventArgs args ) : System.Threading.Tasks.Task
OnPagePresenterStyleChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the PagePresenterStyle property.

ParseJournalEntry ( string parsedString, int &parseIndex ) : JournalEntry
ParseNumber ( string parsedString, int &parseIndex ) : int
ThrottledGoBackAsync ( ) : Task
ThrottledNavigateAsync ( Type sourcePageType, object parameter ) : Task
TransitionBackwardAsync ( AlternativePage currentPage, AlternativePage newPage, ContentPresenter previousPagePresenter, ContentPresenter newPagePresenter ) : Task
TransitionForwardAsync ( AlternativePage currentPage, AlternativePage newPage, ContentPresenter previousPagePresenter, ContentPresenter newPagePresenter ) : Task
UpdateCans ( ) : void

메소드 상세

AlternativeFrame() 공개 메소드

Initializes a new instance of the AlternativeFrame class.
public AlternativeFrame ( ) : System
리턴 System

GetNavigationState() 공개 메소드

Serializes the Frame navigation history into a string.
Serialization is similar to the one used in the matching Frame class method: 1,TotalPages,BackStackDepth[,SourcePageType_Length,SourcePageType,Parameter_TypeCode,Parameter_Length,Parameter…]
public GetNavigationState ( ) : string
리턴 string

GoBackAsync() 공개 메소드

Goes back in history back stack.
/// Navigation already in progress. /// or /// GoBack() call failed. CanGoBack is false. /// or /// GoBack() call failed. CanNavigate is false. ///
public GoBackAsync ( ) : Task
리턴 Task

GoForwardAsync() 공개 메소드

Runs the forward transition.
/// Navigation already in progress. /// or /// GoForward() call failed. CanGoForward is false. /// or /// GoForward() call failed. CanNavigate is false. ///
public GoForwardAsync ( ) : Task
리턴 Task

NavigateAsync() 공개 메소드

Navigates to source page of the specified type.
public NavigateAsync ( Type sourcePageType ) : Task
sourcePageType System.Type Type of the source page.
리턴 Task

NavigateAsync() 공개 메소드

Navigates to source page of the specified type.
/// Navigation already in progress. /// or /// Navigate() call failed. CanNavigate is false. ///
public NavigateAsync ( Type sourcePageType, object parameter ) : Task
sourcePageType System.Type Type of the source page.
parameter object The parameter.
리턴 Task

OnApplyTemplate() 보호된 메소드

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.
protected OnApplyTemplate ( ) : void
리턴 void

OnPagePresenterStyleChanged() 보호된 메소드

Provides derived classes an opportunity to handle changes to the PagePresenterStyle property.
protected OnPagePresenterStyleChanged ( Style oldPagePresenterStyle, Style newPagePresenterStyle ) : void
oldPagePresenterStyle Windows.UI.Xaml.Style The old PagePresenterStyle value
newPagePresenterStyle Windows.UI.Xaml.Style The new PagePresenterStyle value
리턴 void

PreloadAsync() 공개 메소드

Preloads a page of the specified source page type.
Allows to preload a page before user navigates to it, so if it does get navigated to - shows up quickly. If another page gets navigated to - the preloaded page will be released or cached depending on its NavigationCacheMode property.
public PreloadAsync ( Type sourcePageType, object parameter ) : Task
sourcePageType System.Type Type of the source page.
parameter object The parameter.
리턴 Task

SetNavigationStateAsync() 공개 메소드

Reads and restores the navigation history of a Frame from a provided serialization string.
public SetNavigationStateAsync ( string navigationState ) : Task
navigationState string /// The serialization string that supplies the restore point for navigation history. ///
리턴 Task

UnloadAllPreloadedAsync() 공개 메소드

Unloads all preloaded pages.
Pages might have been preloaded in the anticipation of the user navigating to them, then a state change might invalidate or reduce the possibility of a navigation request and it might be worth unloading the preloaded pages to release resources that they consumed. The preloaded page will be released or cached depending on its NavigationCacheMode property.
public UnloadAllPreloadedAsync ( ) : Task
리턴 Task

UnloadPreloadedAsync() 공개 메소드

Unloads the preloaded page of a given type and parameter.
A page might have been preloaded in the anticipation of the user navigating to it, then a state change might invalidate or reduce the possibility of a navigation request and it might be worth unloading the preloaded page to release resources that it consumed. The preloaded page will be released or cached depending on its NavigationCacheMode property.
public UnloadPreloadedAsync ( Type sourcePageType, object parameter ) : Task
sourcePageType Type Type of the source page.
parameter object The parameter.
리턴 Task

프로퍼티 상세

CacheSizeProperty 공개적으로 정적으로 프로퍼티

CacheSize Dependency Property
public static DependencyProperty,Windows.UI.Xaml CacheSizeProperty
리턴 Windows.UI.Xaml.DependencyProperty

CanGoBackProperty 공개적으로 정적으로 프로퍼티

CanGoBack Dependency Property
public static DependencyProperty,Windows.UI.Xaml CanGoBackProperty
리턴 Windows.UI.Xaml.DependencyProperty

CanGoForwardProperty 공개적으로 정적으로 프로퍼티

CanGoForward Dependency Property
public static DependencyProperty,Windows.UI.Xaml CanGoForwardProperty
리턴 Windows.UI.Xaml.DependencyProperty

CanNavigateProperty 공개적으로 정적으로 프로퍼티

CanNavigate Dependency Property
public static DependencyProperty,Windows.UI.Xaml CanNavigateProperty
리턴 Windows.UI.Xaml.DependencyProperty

PagePresenterStyleProperty 공개적으로 정적으로 프로퍼티

PagePresenterStyle Dependency Property
public static DependencyProperty,Windows.UI.Xaml PagePresenterStyleProperty
리턴 Windows.UI.Xaml.DependencyProperty

PageTransitionProperty 공개적으로 정적으로 프로퍼티

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

ShouldWaitForImagesToLoadProperty 공개적으로 정적으로 프로퍼티

ShouldWaitForImagesToLoad Dependency Property
public static DependencyProperty ShouldWaitForImagesToLoadProperty
리턴 DependencyProperty