C# Class WinRTXamlToolkit.Controls.Extensions.UIElementAnimationExtensions

Extension methods and attached properties for UIElement class.
ファイルを表示 Open project: xyzzer/WinRTXamlToolkit

Public Properties

Property Type Description
AttachedFadeStoryboardProperty Windows.UI.Xaml.DependencyProperty

Public Methods

Method Description
CleanUpPreviousFadeStoryboard ( this element ) : void

Cleans up previous fade storyboard.

FadeInAsync ( this element, System.TimeSpan duration = null ) : System.Threading.Tasks.Task

Fades the element in using the FadeInThemeAnimation.

Opacity property of the element is not affected.
The duration of the visible animation itself is not affected by the duration parameter. It merely indicates how long the Storyboard will run.
If FadeOutThemeAnimation was not used on the element before - nothing will happen.

FadeInCustomAsync ( this element, System.TimeSpan duration = null, EasingFunctionBase easingFunction = null, double targetOpacity = 1.0 ) : System.Threading.Tasks.Task

Fades the element in using a custom DoubleAnimation of the Opacity property.

FadeOutAsync ( this element, System.TimeSpan duration = null ) : System.Threading.Tasks.Task

Fades the element out using the FadeOutThemeAnimation.

Opacity property of the element is not affected.
The duration of the visible animation itself is not affected by the duration parameter. It merely indicates how long the Storyboard will run.
If FadeOutThemeAnimation was already run before and FadeInThemeAnimation was not run after that - nothing will happen.

FadeOutCustomAsync ( this element, System.TimeSpan duration = null, EasingFunctionBase easingFunction = null ) : System.Threading.Tasks.Task

Fades the element out using a custom DoubleAnimation of the Opacity property.

Private Methods

Method Description
GetAttachedFadeStoryboard ( DependencyObject d ) : Storyboard

Gets the AttachedFadeStoryboard property. This dependency property indicates the currently running custom fade in/out storyboard.

OnAttachedFadeStoryboardChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the AttachedFadeStoryboard property.

SetAttachedFadeStoryboard ( DependencyObject d, Storyboard value ) : void

Sets the AttachedFadeStoryboard property. This dependency property indicates the currently running custom fade in/out storyboard.

Method Details

CleanUpPreviousFadeStoryboard() public static method

Cleans up previous fade storyboard.
public static CleanUpPreviousFadeStoryboard ( this element ) : void
element this The element.
return void

FadeInAsync() public static method

Fades the element in using the FadeInThemeAnimation.
Opacity property of the element is not affected.
The duration of the visible animation itself is not affected by the duration parameter. It merely indicates how long the Storyboard will run.
If FadeOutThemeAnimation was not used on the element before - nothing will happen.
public static FadeInAsync ( this element, System.TimeSpan duration = null ) : System.Threading.Tasks.Task
element this
duration System.TimeSpan
return System.Threading.Tasks.Task

FadeInCustomAsync() public static method

Fades the element in using a custom DoubleAnimation of the Opacity property.
public static FadeInCustomAsync ( this element, System.TimeSpan duration = null, EasingFunctionBase easingFunction = null, double targetOpacity = 1.0 ) : System.Threading.Tasks.Task
element this The element to fade in.
duration System.TimeSpan The duration of the animation.
easingFunction Windows.UI.Xaml.Media.Animation.EasingFunctionBase The easing function.
targetOpacity double The target opacity.
return System.Threading.Tasks.Task

FadeOutAsync() public static method

Fades the element out using the FadeOutThemeAnimation.
Opacity property of the element is not affected.
The duration of the visible animation itself is not affected by the duration parameter. It merely indicates how long the Storyboard will run.
If FadeOutThemeAnimation was already run before and FadeInThemeAnimation was not run after that - nothing will happen.
public static FadeOutAsync ( this element, System.TimeSpan duration = null ) : System.Threading.Tasks.Task
element this
duration System.TimeSpan
return System.Threading.Tasks.Task

FadeOutCustomAsync() public static method

Fades the element out using a custom DoubleAnimation of the Opacity property.
public static FadeOutCustomAsync ( this element, System.TimeSpan duration = null, EasingFunctionBase easingFunction = null ) : System.Threading.Tasks.Task
element this
duration System.TimeSpan
easingFunction Windows.UI.Xaml.Media.Animation.EasingFunctionBase
return System.Threading.Tasks.Task

Property Details

AttachedFadeStoryboardProperty public_oe static_oe property

AttachedFadeStoryboard Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml AttachedFadeStoryboardProperty
return Windows.UI.Xaml.DependencyProperty