BarnDoorWipeTransition Class
A wipe transition between two elements that uses two straight bars with a configurable gradient spread.
public class BarnDoorWipeTransition : StoryboardTransitionBase, ICloneable
- Inheritance:
- object Transition StoryboardTransitionBase object
- Implements:
- ICloneable
Constructors
BarnDoorWipeTransition()
Initializes an instance of the class.
public BarnDoorWipeTransition()
Properties
BeginTime
The time at which this transition should begin.
Direction
A TransitionDirection specifying the direction of the transition.
Duration
The length of time for which this transition plays, not counting repetitions.
Mode
A TransitionMode specifying the mode of the transition.
Spread
The spread of the wipe effect.
public double Spread { get; set; }
Property Value
- double:
A percentage value between
0and1. The default is0.25.
Remarks
A larger value makes the wipe gradient larger.
Methods
GetFromContentStoryboard(TransitionPresenter, FrameworkElement)
Returns the 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 | FrameworkElement | The element requesting a Style. |
Returns
GetFromContentStyle(TransitionPresenter, FrameworkElement)
Returns the 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 | FrameworkElement | The element requesting a Style. |
Returns
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
Remarks
Override this method to return an opposite variation of the transition if the transition supports the concept.
If the transition uses a TransitionMode, its value should be flipped using the GetOppositeMode(TransitionMode) method.
GetToContentStoryboard(TransitionPresenter, FrameworkElement)
Returns the 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 | FrameworkElement | The element requesting a Style. |
Returns
GetToContentStyle(TransitionPresenter, FrameworkElement)
Returns the 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 | FrameworkElement | The element requesting a Style. |
Returns
Fields
BeginTimeProperty
Defines the BeginTime property.
public static readonly DependencyProperty BeginTimeProperty
DirectionProperty
Defines the Direction property.
public static readonly DependencyProperty DirectionProperty
DurationProperty
Defines the Duration property.
public static readonly DependencyProperty DurationProperty
ModeProperty
Defines the Mode property.
public static readonly DependencyProperty ModeProperty
SpreadProperty
Defines the Spread property.
public static readonly DependencyProperty SpreadProperty
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.Clone()
- Transition.EndTransition(TransitionPresenter, FrameworkElement, object, FrameworkElement, object)
- Transition.GetOppositeDirection(TransitionDirection)
- Transition.GetOppositeMode(TransitionMode)
- Transition.GetResolvedDirection(TransitionDirection, TransitionDirection)
- Transition.ClipToBounds
- Transition.IsToContentTopMost