Table of Contents

Class ElementStoryBoardExtention

Namespace
System.Windows
Assembly
HeBianGu.Service.Animation.dll
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

element UIElement
toAngle double
duration double

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 UIElement
from double
to double
duration double
Completed Action<UIElement>
init Action<StoryboardEngineBase>

Returns

StoryboardEngineBase

BeginAnimationOpacity(UIElement, double, double)

public static void BeginAnimationOpacity(this UIElement element, double to, double duration = 1000)

Parameters

element UIElement
to double
duration double

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 UIElement
from double
to double
duration double
Completed Action<UIElement>
init Action<StoryboardEngineBase>

Returns

StoryboardEngineBase

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 UIElement
geometry PathGeometry
duration double
useAngle bool
reverse bool

BeginAnimationScale(UIElement, double, double, double)

public static void BeginAnimationScale(this UIElement element, double scaleX, double scaleY, double duration = 1000)

Parameters

element UIElement
scaleX double
scaleY double
duration double

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 UIElement
from double
to double
duration double
Completed Action<UIElement>
init Action<StoryboardEngineBase>

Returns

StoryboardEngineBase

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 UIElement
from double
to double
duration double
Completed Action<UIElement>
init Action<StoryboardEngineBase>

Returns

StoryboardEngineBase

BeginAnimationSkew(UIElement, double, double, double)

public static void BeginAnimationSkew(this UIElement element, double toAngleX, double toAngleY, double duration = 1000)

Parameters

element UIElement
toAngleX double
toAngleY double
duration double

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 UIElement
from double
to double
duration double
Completed Action<UIElement>
init Action<StoryboardEngineBase>

Returns

StoryboardEngineBase

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 UIElement
from double
to double
duration double
Completed 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 UIElement
from double
to double
duration double
Completed Action<UIElement>
init Action<StoryboardEngineBase>

Returns

StoryboardEngineBase

BeginAnimationXY(UIElement, double, double, double)

public static void BeginAnimationXY(this UIElement element, double toX, double toY, double duration = 1000)

Parameters

element UIElement
toX double
toY double
duration double

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 UIElement
from double
to double
duration double
Completed Action<UIElement>
init Action<StoryboardEngineBase>

Returns

StoryboardEngineBase

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 UIElement
start double
end double
duration double
propertyName string
Completed Action<UIElement>
init Action<StoryboardEngineBase>

Returns

StoryboardEngineBase

CheckDefaultTransformGroup(UIElement)

public static bool CheckDefaultTransformGroup(this UIElement element)

Parameters

element UIElement

Returns

bool

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)

Parameters

element UIElement
duration double
Completed Action<UIElement>