C# Class FirstFloor.ModernUI.Windows.Controls.TransitioningContentControl

Inheritance: System.Windows.Controls.ContentControl
Afficher le fichier Open project: gro-ove/actools Class Usage Examples

Méthodes publiques

Свойство Type Description
IsTransitioningProperty System.Windows.DependencyProperty
RestartTransitionOnContentChangeProperty System.Windows.DependencyProperty
TransitionProperty System.Windows.DependencyProperty

Private Properties

Свойство Type Description
GetStoryboard System.Windows.Media.Animation.Storyboard
OnIsTransitioningPropertyChanged void
OnRestartTransitionOnContentChangeChanged void
OnRestartTransitionOnContentChangePropertyChanged void
OnTransitionCompleted void
OnTransitionPropertyChanged void
StartTransition void
TransitioningContentControl System

Méthodes publiques

Méthode Description
AbortTransition ( ) : void

Aborts the transition and releases the previous content.

OnApplyTemplate ( ) : void

Builds the visual tree for the TransitioningContentControl control when a new template is applied.

Méthodes protégées

Méthode Description
OnContentChanged ( object oldContent, object newContent ) : void

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

Private Methods

Méthode Description
GetStoryboard ( string newTransition ) : System.Windows.Media.Animation.Storyboard

Attempts to find a storyboard that matches the newTransition name.

OnIsTransitioningPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

IsTransitioningProperty property changed handler.

OnRestartTransitionOnContentChangeChanged ( bool oldValue, bool newValue ) : void

Called when the RestartTransitionOnContentChangeProperty changes.

OnRestartTransitionOnContentChangePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

RestartTransitionOnContentChangeProperty property changed handler.

OnTransitionCompleted ( object sender, EventArgs e ) : void

Handles the Completed event of the transition storyboard.

OnTransitionPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

TransitionProperty property changed handler.

StartTransition ( object oldContent, object newContent ) : void

Starts the transition.

TransitioningContentControl ( ) : System

Static constructor

Method Details

AbortTransition() public méthode

Aborts the transition and releases the previous content.
public AbortTransition ( ) : void
Résultat void

OnApplyTemplate() public méthode

Builds the visual tree for the TransitioningContentControl control when a new template is applied.
public OnApplyTemplate ( ) : void
Résultat void

OnContentChanged() protected méthode

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 value of the property.
newContent object The new value of the property.
Résultat void

Property Details

IsTransitioningProperty public_oe static_oe property

Identifies the IsTransitioning dependency property.
public static DependencyProperty,System.Windows IsTransitioningProperty
Résultat System.Windows.DependencyProperty

RestartTransitionOnContentChangeProperty public_oe static_oe property

Identifies the RestartTransitionOnContentChange dependency property.
public static DependencyProperty,System.Windows RestartTransitionOnContentChangeProperty
Résultat System.Windows.DependencyProperty

TransitionProperty public_oe static_oe property

Identifies the Transition dependency property.
public static DependencyProperty,System.Windows TransitionProperty
Résultat System.Windows.DependencyProperty