C# Class Microsoft.Phone.Controls.TransitionFrame

Inheritance: PhoneApplicationFrame
Show file Open project: Kinnara/WPToolkit Class Usage Examples

Public Methods

Method Description
OnApplyTemplate ( ) : void

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call M:System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application.

TransitionFrame ( ) : System

Initialzies a new instance of the TransitionFrame class.

Protected Methods

Method Description
OnContentChanged ( object oldContent, object newContent ) : void

Called when the value of the P:System.Windows.Controls.ContentControl.Content property changes.

Private Methods

Method Description
CompleteTransition ( Microsoft.Phone.Controls.NavigationTransition navigationTransition, ContentPresenter presenter, ITransition transition ) : void

Completes a transition operation by stopping it, restoring interactivity, and then firing the OnEndTransition event.

EnsureLastTransitionIsComplete ( ) : void

Stops the last navigation transition if it's active and a new navigation occurs.

EnsureStoppedTransition ( ITransition transition ) : void

This checks to make sure that, if the transition not be in the clock state of Stopped, that is will be stopped.

FlipPresenters ( ) : void

Flips the logical content presenters to prepare for the next visual transition.

OnExitTransitionCompleted ( object sender, EventArgs e ) : void

Handles the completion of the exit transition, automatically continuing to bring in the new element's transition as well if it is ready.

OnNavigating ( object sender, System.Windows.Navigation.NavigatingCancelEventArgs e ) : void

Handles the Navigating event of the frame, the immediate way to begin a transition out before the new page has loaded or had its layout pass.

OnNavigationStopped ( object sender, System.Windows.Navigation.NavigationEventArgs e ) : void

Handles the NavigationStopped event of the frame. Set a value indicating that the navigation is cancelled.

PerformTransition ( Microsoft.Phone.Controls.NavigationTransition navigationTransition, ContentPresenter presenter, ITransition transition ) : void

Performs a transition when given the appropriate components, includes calling the appropriate start event and ensuring opacity on the content presenter.

PrepareContentPresenterForCompositor ( ContentPresenter presenter, bool applyBitmapCache = true ) : void

Updates the content presenter for off-thread compositing for the transition animation. Also disables interactivity on it to prevent accidental touches.

RestoreContentPresenterInteractivity ( ContentPresenter presenter ) : void

Restores the interactivity for the presenter post-animation, also removes the BitmapCache value.

TransitionNewContent ( ITransition newTransition, NavigationInTransition navigationInTransition ) : void

Transitions the new T:System.Windows.UIElement.

Method Details

OnApplyTemplate() public method

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call M:System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application.
public OnApplyTemplate ( ) : void
return void

OnContentChanged() protected method

Called when the value of the P:System.Windows.Controls.ContentControl.Content property changes.
protected OnContentChanged ( object oldContent, object newContent ) : void
oldContent object The old .
newContent object The new .
return void

TransitionFrame() public method

Initialzies a new instance of the TransitionFrame class.
public TransitionFrame ( ) : System
return System