StoryboardTransition Class
A System.Windows.Media.Animation.Storyboard-based transition between two elements.
public class StoryboardTransition : StoryboardTransitionBase, ICloneable
- Inheritance:
- System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject Transition StoryboardTransitionBase Object
- Implements:
- System.ICloneable
Constructors
StoryboardTransition()
public StoryboardTransition()
Properties
FromContentStoryboard
Gets or sets the System.Windows.Media.Animation.Storyboard that should be applied to the "from" content when the transition occurs.
public Storyboard FromContentStoryboard { get; set; }
Property Value
- System.Windows.Media.Animation.Storyboard:
The System.Windows.Media.Animation.Storyboard that should be applied to the "from" content when the transition occurs.
FromContentStyle
Gets or sets the System.Windows.Style that should be applied to the "from" content when the transition begins.
public Style FromContentStyle { get; set; }
Property Value
- System.Windows.Style:
The System.Windows.Style that should be applied to the "from" content when the transition begins.
ToContentStoryboard
Gets or sets the System.Windows.Media.Animation.Storyboard that should be applied to the "to" content when the transition occurs.
public Storyboard ToContentStoryboard { get; set; }
Property Value
- System.Windows.Media.Animation.Storyboard:
The System.Windows.Media.Animation.Storyboard that should be applied to the "to" content when the transition occurs.
ToContentStyle
Gets or sets the System.Windows.Style that should be applied to the "to" content when the transition begins.
public Style ToContentStyle { get; set; }
Property Value
- System.Windows.Style:
The System.Windows.Style that should be applied to the "to" content when the transition begins.
Methods
GetFromContentStoryboard(TransitionPresenter, FrameworkElement)
Returns the System.Windows.Media.Animation.Storyboard to apply to the "from" content.
protected override Storyboard GetFromContentStoryboard(TransitionPresenter presenter, FrameworkElement content)
Parameter | Type | Description |
---|---|---|
presenter | TransitionPresenter | The TransitionPresenter that is managing the transition. |
content | System.Windows.FrameworkElement | The element requesting a System.Windows.Style. |
Returns
- System.Windows.Media.Animation.Storyboard:
The System.Windows.Media.Animation.Storyboard to apply to the "from" content.
GetFromContentStyle(TransitionPresenter, FrameworkElement)
Returns the System.Windows.Style to apply to the "from" content during the transition.
protected override Style GetFromContentStyle(TransitionPresenter presenter, FrameworkElement content)
Parameter | Type | Description |
---|---|---|
presenter | TransitionPresenter | The TransitionPresenter that is managing the transition. |
content | System.Windows.FrameworkElement | The element requesting a System.Windows.Style. |
Returns
- System.Windows.Style:
The System.Windows.Style to apply to the "from" content during the transition.
GetOppositeTransition()
Returns a variation of the transition that can be used for backing out a content that was inserted into the presenter using this transition.
public override Transition GetOppositeTransition()
Returns
- Transition:
A variation of the transition that can be used for backing out a content that was inserted into the presenter using this transition.
GetToContentStoryboard(TransitionPresenter, FrameworkElement)
Returns the System.Windows.Media.Animation.Storyboard to apply to the "to" content.
protected override Storyboard GetToContentStoryboard(TransitionPresenter presenter, FrameworkElement content)
Parameter | Type | Description |
---|---|---|
presenter | TransitionPresenter | The TransitionPresenter that is managing the transition. |
content | System.Windows.FrameworkElement | The element requesting a System.Windows.Style. |
Returns
- System.Windows.Media.Animation.Storyboard:
The System.Windows.Media.Animation.Storyboard to apply to the "to" content.
GetToContentStyle(TransitionPresenter, FrameworkElement)
Returns the System.Windows.Style to apply to the "to" content during the transition.
protected override Style GetToContentStyle(TransitionPresenter presenter, FrameworkElement content)
Parameter | Type | Description |
---|---|---|
presenter | TransitionPresenter | The TransitionPresenter that is managing the transition. |
content | System.Windows.FrameworkElement | The element requesting a System.Windows.Style. |
Returns
- System.Windows.Style:
The System.Windows.Style to apply to the "to" content during the transition.
Fields
FromContentStoryboardProperty
Identifies the FromContentStoryboard dependency property. This field is read-only.
public static readonly DependencyProperty FromContentStoryboardProperty
FromContentStyleProperty
Identifies the FromContentStyle dependency property. This field is read-only.
public static readonly DependencyProperty FromContentStyleProperty
ToContentStoryboardProperty
Identifies the ToContentStoryboard dependency property. This field is read-only.
public static readonly DependencyProperty ToContentStoryboardProperty
ToContentStyleProperty
Identifies the ToContentStyle dependency property. This field is read-only.
public static readonly DependencyProperty ToContentStyleProperty
Inherited Members
- StoryboardTransitionBase.GetFromContentStyle(TransitionPresenter, FrameworkElement, FrameworkElement)
- StoryboardTransitionBase.GetToContentStyle(TransitionPresenter, FrameworkElement, FrameworkElement)
- StoryboardTransitionBase.OnCompleted(TransitionPresenter, FrameworkElement, Object, FrameworkElement, Object)
- StoryboardTransitionBase.OnStarted(TransitionPresenter, FrameworkElement, FrameworkElement)
- Transition.ClipToBoundsProperty
- Transition.IsToContentTopMostProperty
- Transition.ICloneable.Clone()
- Transition.Clone()
- Transition.EndTransition(TransitionPresenter, FrameworkElement, Object, FrameworkElement, Object)
- Transition.GetOppositeDirection(TransitionDirection)
- Transition.GetOppositeMode(TransitionMode)
- Transition.GetResolvedDirection(TransitionDirection, TransitionDirection)
- Transition.ClipToBounds
- Transition.IsToContentTopMost
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()