Class ElementStoryBoardExtention
public static class ElementStoryBoardExtention
- Inheritance
-
ElementStoryBoardExtention
- Inherited Members
Methods
BeginAnimationAngle(UIElement, double, double)
public static void BeginAnimationAngle(this UIElement element, double toAngle, double duration = 1000)
Parameters
BeginAnimationAngle(UIElement, double, double, double, Action<UIElement>, Action<StoryboardEngineBase>)
public static StoryboardEngineBase BeginAnimationAngle(this UIElement element, double from, double to, double duration = 1000, Action<UIElement> Completed = null, Action<StoryboardEngineBase> init = null)
Parameters
element
UIElementfrom
doubleto
doubleduration
doubleCompleted
Action<UIElement>init
Action<StoryboardEngineBase>
Returns
BeginAnimationOpacity(UIElement, double, double)
public static void BeginAnimationOpacity(this UIElement element, double to, double duration = 1000)
Parameters
BeginAnimationOpacity(UIElement, double, double, double, Action<UIElement>, Action<StoryboardEngineBase>)
public static StoryboardEngineBase BeginAnimationOpacity(this UIElement element, double from, double to, double duration = 1000, Action<UIElement> Completed = null, Action<StoryboardEngineBase> init = null)
Parameters
element
UIElementfrom
doubleto
doubleduration
doubleCompleted
Action<UIElement>init
Action<StoryboardEngineBase>
Returns
BeginAnimationPath(UIElement, PathGeometry, double, bool, bool)
public static void BeginAnimationPath(this UIElement element, PathGeometry geometry, double duration = 1000, bool useAngle = true, bool reverse = false)
Parameters
element
UIElementgeometry
PathGeometryduration
doubleuseAngle
boolreverse
bool
BeginAnimationScale(UIElement, double, double, double)
public static void BeginAnimationScale(this UIElement element, double scaleX, double scaleY, double duration = 1000)
Parameters
BeginAnimationScaleX(UIElement, double, double, double, Action<UIElement>, Action<StoryboardEngineBase>)
public static StoryboardEngineBase BeginAnimationScaleX(this UIElement element, double from, double to, double duration = 1000, Action<UIElement> Completed = null, Action<StoryboardEngineBase> init = null)
Parameters
element
UIElementfrom
doubleto
doubleduration
doubleCompleted
Action<UIElement>init
Action<StoryboardEngineBase>
Returns
BeginAnimationScaleY(UIElement, double, double, double, Action<UIElement>, Action<StoryboardEngineBase>)
public static StoryboardEngineBase BeginAnimationScaleY(this UIElement element, double from, double to, double duration = 1000, Action<UIElement> Completed = null, Action<StoryboardEngineBase> init = null)
Parameters
element
UIElementfrom
doubleto
doubleduration
doubleCompleted
Action<UIElement>init
Action<StoryboardEngineBase>
Returns
BeginAnimationSkew(UIElement, double, double, double)
public static void BeginAnimationSkew(this UIElement element, double toAngleX, double toAngleY, double duration = 1000)
Parameters
BeginAnimationSkewX(UIElement, double, double, double, Action<UIElement>, Action<StoryboardEngineBase>)
public static StoryboardEngineBase BeginAnimationSkewX(this UIElement element, double from, double to, double duration = 1000, Action<UIElement> Completed = null, Action<StoryboardEngineBase> init = null)
Parameters
element
UIElementfrom
doubleto
doubleduration
doubleCompleted
Action<UIElement>init
Action<StoryboardEngineBase>
Returns
BeginAnimationSkewY(UIElement, double, double, double, Action<UIElement>, Action<StoryboardEngineBase>)
public static void BeginAnimationSkewY(this UIElement element, double from, double to, double duration = 1000, Action<UIElement> Completed = null, Action<StoryboardEngineBase> init = null)
Parameters
element
UIElementfrom
doubleto
doubleduration
doubleCompleted
Action<UIElement>init
Action<StoryboardEngineBase>
BeginAnimationX(UIElement, double, double, double, Action<UIElement>, Action<StoryboardEngineBase>)
public static StoryboardEngineBase BeginAnimationX(this UIElement element, double from, double to, double duration = 1000, Action<UIElement> Completed = null, Action<StoryboardEngineBase> init = null)
Parameters
element
UIElementfrom
doubleto
doubleduration
doubleCompleted
Action<UIElement>init
Action<StoryboardEngineBase>
Returns
BeginAnimationXY(UIElement, double, double, double)
public static void BeginAnimationXY(this UIElement element, double toX, double toY, double duration = 1000)
Parameters
BeginAnimationY(UIElement, double, double, double, Action<UIElement>, Action<StoryboardEngineBase>)
public static StoryboardEngineBase BeginAnimationY(this UIElement element, double from, double to, double duration = 1000, Action<UIElement> Completed = null, Action<StoryboardEngineBase> init = null)
Parameters
element
UIElementfrom
doubleto
doubleduration
doubleCompleted
Action<UIElement>init
Action<StoryboardEngineBase>
Returns
BegionDoubleStoryBoard(UIElement, double, double, double, string, Action<UIElement>, Action<StoryboardEngineBase>)
执行动画
public static StoryboardEngineBase BegionDoubleStoryBoard(this UIElement element, double start, double end, double duration, string propertyName, Action<UIElement> Completed = null, Action<StoryboardEngineBase> init = null)
Parameters
element
UIElementstart
doubleend
doubleduration
doublepropertyName
stringCompleted
Action<UIElement>init
Action<StoryboardEngineBase>
Returns
CheckDefaultTransformGroup(UIElement)
public static bool CheckDefaultTransformGroup(this UIElement element)
Parameters
element
UIElement
Returns
GetTransform<T>(UIElement)
获取 RenderTransform 中 Transform 元素
public static T GetTransform<T>(this UIElement element) where T : Transform
Parameters
element
UIElement
Returns
- T
Type Parameters
T
Wait(UIElement, double, Action<UIElement>)
public static void Wait(this UIElement element, double duration = 1000, Action<UIElement> Completed = null)