Class TransitioningContentControl
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.Wpf.dll
A ContentControl that animates the transition when its content is changed.
[TemplatePart(Name = "PART_Container", Type = typeof(FrameworkElement))]
[TemplatePart(Name = "PART_PreviousImageSite", Type = typeof(Image))]
[TemplatePart(Name = "PART_CurrentContentPresentationSite", Type = typeof(ContentPresenter))]
[TemplateVisualState(Name = "Normal", GroupName = "PresentationStates")]
public class TransitioningContentControl : ContentControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild
- Inheritance
-
TransitioningContentControl
- Implements
- Inherited Members
- Extension Methods
Constructors
TransitioningContentControl()
Initializes a new instance of the TransitioningContentControl class.
public TransitioningContentControl()
Fields
TransitionDirectionProperty
System.Windows.DependencyProperty for the Transition property.
public static readonly DependencyProperty TransitionDirectionProperty
Field Value
- DependencyProperty
TransitionDurationProperty
System.Windows.DependencyProperty for the Transition property.
public static readonly DependencyProperty TransitionDurationProperty
Field Value
- DependencyProperty
TransitionProperty
System.Windows.DependencyProperty for the Transition property.
public static readonly DependencyProperty TransitionProperty
Field Value
- DependencyProperty
Properties
Direction
Gets or sets the transition direction.
public TransitioningContentControl.TransitionDirection Direction { get; set; }
Property Value
- TransitioningContentControl.TransitionDirection
The direction.
Duration
Gets or sets the transition duration.
public TimeSpan Duration { get; set; }
Property Value
- TimeSpan
The duration.
Transition
Gets or sets the transition.
public TransitioningContentControl.TransitionType Transition { get; set; }
Property Value
- TransitioningContentControl.TransitionType
The transition.
Methods
OnApplyTemplate()
public override void OnApplyTemplate()
OnContentChanged(object, object)
Called when the value of the Content property changes.
protected override void OnContentChanged(object oldContent, object newContent)
Parameters
oldContent
objectThe old value of the Content property.
newContent
objectThe new value of the Content property.
Events
TransitionCompleted
Occurs when a transition has completed.
public event RoutedEventHandler? TransitionCompleted
Event Type
TransitionStarted
Occurs when a transition has started.
public event RoutedEventHandler? TransitionStarted