C# 클래스 WinRTXamlToolkit.Controls.Extensions.UIElementAnimationExtensions

Extension methods and attached properties for UIElement class.
파일 보기 프로젝트 열기: xyzzer/WinRTXamlToolkit

공개 프로퍼티들

프로퍼티 타입 설명
AttachedFadeStoryboardProperty Windows.UI.Xaml.DependencyProperty

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

CleanUpPreviousFadeStoryboard() 공개 정적인 메소드

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

FadeInAsync() 공개 정적인 메소드

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
리턴 System.Threading.Tasks.Task

FadeInCustomAsync() 공개 정적인 메소드

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.
리턴 System.Threading.Tasks.Task

FadeOutAsync() 공개 정적인 메소드

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
리턴 System.Threading.Tasks.Task

FadeOutCustomAsync() 공개 정적인 메소드

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
리턴 System.Threading.Tasks.Task

프로퍼티 상세

AttachedFadeStoryboardProperty 공개적으로 정적으로 프로퍼티

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