Class TransitioningContentControl
Represents a control with a single piece of content and when that content changes performs a transition animation.
Inheritance
Inherited Members
Namespace: System.Windows.Controls
Assembly: Controls.Layout.Toolkit.OpenSilver.dll
Syntax
public class TransitioningContentControl : ContentControl
Remarks
The API for this control will change considerably in the future.
Constructors
| Improve this Doc View SourceTransitioningContentControl()
Initializes a new instance of the TransitioningContentControl class.
Declaration
public TransitioningContentControl()
Fields
| Improve this Doc View SourceDefaultTransitionState
The name of the state that represents the default transition.
Declaration
public const string DefaultTransitionState = "DefaultTransition"
Field Value
Type | Description |
---|---|
System.String |
IsTransitioningProperty
Identifies the IsTransitioning dependency property.
Declaration
public static readonly DependencyProperty IsTransitioningProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
RestartTransitionOnContentChangeProperty
Identifies the RestartTransitionOnContentChange dependency property.
Declaration
public static readonly DependencyProperty RestartTransitionOnContentChangeProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
TransitionProperty
Identifies the Transition dependency property.
Declaration
public static readonly DependencyProperty TransitionProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceIsTransitioning
Gets a value indicating whether this instance is currently performing a transition.
Declaration
public bool IsTransitioning { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
RestartTransitionOnContentChange
Gets or sets a value indicating whether the current transition will be aborted when setting new content during a transition.
Declaration
public bool RestartTransitionOnContentChange { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Transition
Gets or sets the name of the transition to use. These correspond directly to the VisualStates inside the PresentationStates group.
Declaration
public string Transition { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceAbortTransition()
Aborts the transition and releases the previous content.
Declaration
public void AbortTransition()
OnApplyTemplate()
Builds the visual tree for the TransitioningContentControl control when a new template is applied.
Declaration
public override void OnApplyTemplate()
Overrides
| Improve this Doc View SourceOnContentChanged(Object, Object)
Called when the value of the Content property changes.
Declaration
protected override void OnContentChanged(object oldContent, object newContent)
Parameters
Type | Name | Description |
---|---|---|
System.Object | oldContent | The old value of the Content property. |
System.Object | newContent | The new value of the Content property. |
OnRestartTransitionOnContentChangeChanged(Boolean, Boolean)
Called when the RestartTransitionOnContentChangeProperty changes.
Declaration
protected virtual void OnRestartTransitionOnContentChangeChanged(bool oldValue, bool newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | oldValue | The old value of RestartTransitionOnContentChange. |
System.Boolean | newValue | The new value of RestartTransitionOnContentChange. |
Events
| Improve this Doc View SourceTransitionCompleted
Occurs when the current transition has completed.
Declaration
public event RoutedEventHandler TransitionCompleted
Event Type
Type | Description |
---|---|
RoutedEventHandler |