FadeOutThemeAnimation 클래스
TOC
콘텐츠의 테이블 축소
콘텐츠의 테이블 확장

FadeOutThemeAnimation Class

UI에서 제거되거나 숨겨져 있을 때 컨트롤에 적용되는 미리 구성된 불투명 애니메이션을 나타냅니다.

상속

Object
  DependencyObject
    Timeline
      FadeOutThemeAnimation

구문


public sealed class FadeOutThemeAnimation : Timeline


<FadeOutThemeAnimation ... />

특성

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

멤버

FadeOutThemeAnimation클래스에는 다음과 같은 형식의 멤버가 있습니다.

생성자

FadeOutThemeAnimation클래스에는 다음과 같은 생성자가 있습니다.

생성자Description
FadeOutThemeAnimation Initializes a new instance of the FadeOutThemeAnimation class.

 

이벤트

FadeOutThemeAnimation클래스에는 다음과 같은 이벤트가 있습니다.

이벤트Description
Completed Occurs when the Storyboard object has completed playing. (다음에서 상속됨 Timeline)

 

메서드

The FadeOutThemeAnimation 클래스 - 이러한 메서드가 있습니다. 다음 위치의 메서드도 상속합니다. Object 클래스.

메서드Description
ClearValue Clears the local value of a dependency property. (다음에서 상속됨 DependencyObject)
GetAnimationBaseValue Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (다음에서 상속됨 DependencyObject)
GetValue Returns the current effective value of a dependency property from a DependencyObject. (다음에서 상속됨 DependencyObject)
ReadLocalValue Returns the local value of a dependency property, if a local value is set. (다음에서 상속됨 DependencyObject)
SetValue Sets the local value of a dependency property on a DependencyObject. (다음에서 상속됨 DependencyObject)

 

속성

FadeOutThemeAnimation클래스 - 이러한 속성이 있습니다.

속성사용 권한Description

AutoReverse

읽기/쓰기Gets or sets a value that indicates whether the timeline plays in reverse after it completes a forward iteration. (다음에서 상속됨 Timeline)

BeginTime

읽기/쓰기Gets or sets the time at which this Timeline should begin. (다음에서 상속됨 Timeline)

Dispatcher

읽기 전용Gets the CoreDispatcher that this object is associated with. (다음에서 상속됨 DependencyObject)

Duration

읽기/쓰기Gets or sets the length of time for which this timeline plays, not counting repetitions. (다음에서 상속됨 Timeline)

FillBehavior

읽기/쓰기Gets or sets a value that specifies how the animation behaves after it reaches the end of its active period. (다음에서 상속됨 Timeline)

RepeatBehavior

읽기/쓰기Gets or sets the repeating behavior of this timeline. (다음에서 상속됨 Timeline)

SpeedRatio

읽기/쓰기Gets or sets the rate, relative to its parent, at which time progresses for this Timeline. (다음에서 상속됨 Timeline)

TargetName

읽기/쓰기Gets or sets the reference name of the control element being targeted.

TargetNameProperty

읽기 전용Identifies the TargetName dependency property.

 

예제

다음 예제에서는 FadeInThemeAnimationFadeOutThemeAnimation을 사각형에 적용합니다.


<StackPanel>
    <StackPanel.Resources>

        <!-- Theme animations like this can use the default behavior like
             this example or you could use properties like BeginTime and 
             Duration to tweak when and how quickly the animation occures. 
             If you want more control over a fade animation (e.g. just partial
             fade), you will need to use DoubleAnimation to animate the Opacity 
             property of the element you want to fade in or out. -->
        <Storyboard x:Name="EnterStoryboard">
            <FadeOutThemeAnimation Storyboard.TargetName="myRectangle" />
        </Storyboard>
        <Storyboard x:Name="ExitStoryboard">
            <FadeInThemeAnimation Storyboard.TargetName="myRectangle" />
        </Storyboard>
    </StackPanel.Resources>
    <Rectangle x:Name="myRectangle" 
               PointerEntered="Rectangle_PointerEntered" 
               PointerExited="Rectangle_PointerExited"   
               Fill="Blue" Width="200" Height="300" />
</StackPanel>



// When the pointer enters the rectangle space, the animation begins.
private void Rectangle_PointerEntered(object sender, PointerRoutedEventArgs e)
{
    EnterStoryboard.Begin();
}

private void Rectangle_PointerExited(object sender, PointerRoutedEventArgs e)
{
    ExitStoryboard.Begin();
}


요구 사항

지원되는 최소 클라이언트

Windows 8 [Windows 스토어 앱만]

지원되는 최소 서버

Windows Server 2012 [Windows 스토어 앱만]

Namespace

Windows.UI.Xaml.Media.Animation
Windows::UI::Xaml::Media::Animation [C++]

Metadata

Windows.winmd

참고 항목

Timeline
페이드에 애니메이션 효과 적용
페이드 애니메이션을 위한 지침 및 검사 목록

 

 

표시:
© 2017 Microsoft