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

Inheritance: System.Windows.Controls.ContentControl
ファイルを表示 Open project: gro-ove/actools Class Usage Examples

Public Properties

Property Type Description
IsTransitioningProperty System.Windows.DependencyProperty
RestartTransitionOnContentChangeProperty System.Windows.DependencyProperty
TransitionProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
GetStoryboard System.Windows.Media.Animation.Storyboard
OnIsTransitioningPropertyChanged void
OnRestartTransitionOnContentChangeChanged void
OnRestartTransitionOnContentChangePropertyChanged void
OnTransitionCompleted void
OnTransitionPropertyChanged void
StartTransition void
TransitioningContentControl System

Public Methods

Method 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.

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
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 method

Aborts the transition and releases the previous content.
public AbortTransition ( ) : void
return void

OnApplyTemplate() public method

Builds the visual tree for the TransitioningContentControl control when a new template is applied.
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 value of the property.
newContent object The new value of the property.
return void

Property Details

IsTransitioningProperty public_oe static_oe property

Identifies the IsTransitioning dependency property.
public static DependencyProperty,System.Windows IsTransitioningProperty
return System.Windows.DependencyProperty

RestartTransitionOnContentChangeProperty public_oe static_oe property

Identifies the RestartTransitionOnContentChange dependency property.
public static DependencyProperty,System.Windows RestartTransitionOnContentChangeProperty
return System.Windows.DependencyProperty

TransitionProperty public_oe static_oe property

Identifies the Transition dependency property.
public static DependencyProperty,System.Windows TransitionProperty
return System.Windows.DependencyProperty