AnimationExtensions.Offset Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Offset(AnimationSet, Single, Single, Double, Double, EasingType, EasingMode) |
Animates the offset of the UIElement. |
Offset(UIElement, Single, Single, Double, Double, EasingType, EasingMode) |
Animates the offset of the UIElement. |
Offset(AnimationSet, Single, Single, Double, Double, EasingType, EasingMode)
Animates the offset of the UIElement.
public static Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet Offset (this Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet animationSet, float offsetX = 0, float offsetY = 0, double duration = 500, double delay = 0, Microsoft.Toolkit.Uwp.UI.Animations.EasingType easingType = Microsoft.Toolkit.Uwp.UI.Animations.EasingType.Default, Windows.UI.Xaml.Media.Animation.EasingMode easingMode = Windows.UI.Xaml.Media.Animation.EasingMode.EaseOut);
static member Offset : Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet * single * single * double * double * Microsoft.Toolkit.Uwp.UI.Animations.EasingType * Windows.UI.Xaml.Media.Animation.EasingMode -> Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet
<Extension()>
Public Function Offset (animationSet As AnimationSet, Optional offsetX As Single = 0, Optional offsetY As Single = 0, Optional duration As Double = 500, Optional delay As Double = 0, Optional easingType As EasingType = Microsoft.Toolkit.Uwp.UI.Animations.EasingType.Default, Optional easingMode As EasingMode = Windows.UI.Xaml.Media.Animation.EasingMode.EaseOut) As AnimationSet
Parameters
- animationSet
- AnimationSet
The animation set.
- offsetX
- Single
The offset on the x axis.
- offsetY
- Single
The offset on the y axis.
- duration
- Double
The duration in milliseconds.
- delay
- Double
The delay in milliseconds. (ignored if duration == 0)
- easingType
- EasingType
Used to describe how the animation interpolates between keyframes.
- easingMode
- Windows.UI.Xaml.Media.Animation.EasingMode
The EasingMode to use to interpolate between keyframes.
Returns
An AnimationSet.
Applies to
Offset(UIElement, Single, Single, Double, Double, EasingType, EasingMode)
Animates the offset of the UIElement.
public static Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet Offset (this Windows.UI.Xaml.UIElement associatedObject, float offsetX = 0, float offsetY = 0, double duration = 500, double delay = 0, Microsoft.Toolkit.Uwp.UI.Animations.EasingType easingType = Microsoft.Toolkit.Uwp.UI.Animations.EasingType.Default, Windows.UI.Xaml.Media.Animation.EasingMode easingMode = Windows.UI.Xaml.Media.Animation.EasingMode.EaseOut);
static member Offset : Windows.UI.Xaml.UIElement * single * single * double * double * Microsoft.Toolkit.Uwp.UI.Animations.EasingType * Windows.UI.Xaml.Media.Animation.EasingMode -> Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet
<Extension()>
Public Function Offset (associatedObject As UIElement, Optional offsetX As Single = 0, Optional offsetY As Single = 0, Optional duration As Double = 500, Optional delay As Double = 0, Optional easingType As EasingType = Microsoft.Toolkit.Uwp.UI.Animations.EasingType.Default, Optional easingMode As EasingMode = Windows.UI.Xaml.Media.Animation.EasingMode.EaseOut) As AnimationSet
Parameters
- associatedObject
- Windows.UI.Xaml.UIElement
The specified UI Element.
- offsetX
- Single
The offset on the x axis.
- offsetY
- Single
The offset on the y axis.
- duration
- Double
The duration in milliseconds.
- delay
- Double
The delay in milliseconds. (ignored if duration == 0)
- easingType
- EasingType
Used to describe how the animation interpolates between keyframes.
- easingMode
- Windows.UI.Xaml.Media.Animation.EasingMode
The EasingMode to use to interpolate between keyframes.
Returns
An AnimationSet.