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

RepositionThemeAnimation Class

위치를 변경 중인 개체에 애니메이션 효과를 사용합니다.

상속

Object
  DependencyObject
    Timeline
      RepositionThemeAnimation

구문


public sealed class RepositionThemeAnimation : Timeline


<RepositionThemeAnimation .../>

특성

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

멤버

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

생성자

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

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

 

이벤트

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

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

 

메서드

The RepositionThemeAnimation 클래스 - 이러한 메서드가 있습니다. 다음 위치의 메서드도 상속합니다. 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)

 

속성

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

속성사용 권한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)

FromHorizontalOffset

읽기/쓰기Gets or sets the distance by which the target is translated in the horizontal direction when the animation is active.

FromHorizontalOffsetProperty

읽기 전용Identifies the FromHorizontalOffset dependency property.

FromVerticalOffset

읽기/쓰기Gets or sets the distance by which the target is translated in the vertical direction when the animation is active.

FromVerticalOffsetProperty

읽기 전용Identifies the FromVerticalOffset dependency property.

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.

 

설명

지속 시간이 미리 구성되어 있으므로 Duration 속성을 설정해도 이 개체에는 영향을 주지 않습니다.

예제

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


<Grid>
    <Grid.Resources>
        <!-- Sets up a RepositionThemeAnimation using the FromHorizontalOffset property 
             to start the animation from the old location. -->
        <Storyboard x:Name="PointerReleasedStoryboard">
            <RepositionThemeAnimation Storyboard.TargetName="myRectangle" FromHorizontalOffset="-400" />
        </Storyboard>
    </Grid.Resources>

    <Rectangle x:Name="myRectangle" 
         HorizontalAlignment="Left" 
         Width="200" 
         Height="200" 
         Fill="Blue"
         PointerReleased="Rectangle_PointerReleased" 
    />
</Grid>


private void Rectangle_PointerReleased(object sender, PointerRoutedEventArgs e)
{
    myRectangle.Margin = new Thickness(400, 0, 0, 0);
    PointerReleasedStoryboard.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