C# Class WinRTXamlToolkit.Controls.Extensions.UIElementAnimationExtensions

Extension methods and attached properties for UIElement class.
Afficher le fichier Open project: xyzzer/WinRTXamlToolkit

Méthodes publiques

Свойство Type Description
AttachedFadeStoryboardProperty Windows.UI.Xaml.DependencyProperty

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

FadeInAsync() public static méthode

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
Résultat System.Threading.Tasks.Task

FadeInCustomAsync() public static méthode

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.
Résultat System.Threading.Tasks.Task

FadeOutAsync() public static méthode

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
Résultat System.Threading.Tasks.Task

FadeOutCustomAsync() public static méthode

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
Résultat System.Threading.Tasks.Task

Property Details

AttachedFadeStoryboardProperty public_oe static_oe property

AttachedFadeStoryboard Attached Dependency Property
public static DependencyProperty,Windows.UI.Xaml AttachedFadeStoryboardProperty
Résultat Windows.UI.Xaml.DependencyProperty