PointerDownThemeAnimation Class
사용자가 항목이나 요소를 누를 때 실행되는 미리 구성된 애니메이션을 나타냅니다.
상속
- Object
- DependencyObject
- Timeline
- PointerDownThemeAnimation
구문
<PointerDownThemeAnimation .../>
특성
- ActivatableAttribute(NTDDI_WIN8)
- MarshalingBehaviorAttribute(Agile)
- StaticAttribute(Windows.UI.Xaml.Media.Animation.IPointerDownThemeAnimationStatics, NTDDI_WIN8)
- ThreadingAttribute(Both)
- VersionAttribute(NTDDI_WIN8)
- WebHostHiddenAttribute()
구성원
PointerDownThemeAnimation클래스에는 다음과 같은 유형의 구성원이 있습니다.
생성자
PointerDownThemeAnimation클래스에는 다음 생성자가 있습니다.
| 생성자 | 설명 |
|---|---|
| PointerDownThemeAnimation | Initializes a new instance of the PointerDownThemeAnimation class. |
이벤트
PointerDownThemeAnimation클래스에는 다음 이벤트가 있습니다.
| 이벤트 | 설명 |
|---|---|
| Completed | Occurs when the Storyboard object has completed playing. (상속 대상 Timeline) |
메서드
The PointerDownThemeAnimation 클래스 다음 메서드가 있습니다. 또한 다음에서 메서드를 상속합니다. Object 클래스.
| 메서드 | 설명 |
|---|---|
| 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) |
속성
PointerDownThemeAnimation클래스 다음 속성이 있습니다.
| 속성 | 액세스 유형 | 설명 |
|---|---|---|
| 읽기/쓰기 | Gets or sets a value that indicates whether the timeline plays in reverse after it completes a forward iteration. (상속 대상 Timeline) | |
| 읽기/쓰기 | Gets or sets the time at which this Timeline should begin. (상속 대상 Timeline) | |
| 읽기 전용 | Gets the CoreDispatcher that this object is associated with. (상속 대상 DependencyObject) | |
| 읽기/쓰기 | Gets or sets the length of time for which this timeline plays, not counting repetitions. (상속 대상 Timeline) | |
| 읽기/쓰기 | Gets or sets a value that specifies how the animation behaves after it reaches the end of its active period. (상속 대상 Timeline) | |
| 읽기/쓰기 | Gets or sets the repeating behavior of this timeline. (상속 대상 Timeline) | |
| 읽기/쓰기 | Gets or sets the rate, relative to its parent, at which time progresses for this Timeline. (상속 대상 Timeline) | |
| 읽기/쓰기 | Gets or sets the reference name of the control element being targeted. | |
| 읽기 전용 | Identifies the TargetName dependency property. |
설명
지속 시간이 미리 구성되어 있으므로 Duration 속성을 설정해도 이 개체에는 영향을 주지 않습니다.
예제
다음은 PointerDown/Up 테마 애니메이션을 사용하는 사용자 지정 컨트롤의 템플릿 예입니다.
<!-- Example template of a custom control that uses PointerDown/Up theme animations. The PointerDownThemeAnimation will be run when the control is in the PointerDown state.--> <ControlTemplate TargetType="local:TapControl"> <Grid> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="TapStates"> <VisualState x:Name="Normal" /> <VisualState x:Name="PointerDown"> <Storyboard> <PointerDownThemeAnimation TargetName="contentRectangle" /> </Storyboard> </VisualState> <VisualState x:Name="PointerUp"> <Storyboard> <PointerUpThemeAnimation TargetName="contentRectangle" /> </Storyboard> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <Rectangle x:Name="contentRectangle" Width="100" Height="100" Fill="{TemplateBinding Background}" /> </Grid> </ControlTemplate>
public sealed class TapControl : Control { public TapControl() { this.DefaultStyleKey = typeof(TapControl); } protected override void OnPointerPressed(PointerRoutedEventArgs e) { this.CapturePointer(e.Pointer); VisualStateManager.GoToState(this, "PointerDown", true); } protected override void OnPointerReleased(PointerRoutedEventArgs e) { VisualStateManager.GoToState(this, "PointerUp", true); this.ReleasePointerCapture(e.Pointer); } }
요구 사항
|
지원되는 최소 클라이언트 | Windows 8 [Windows 스토어 앱 전용] |
|---|---|
|
지원되는 최소 서버 | Windows Server 2012 [Windows 스토어 앱 전용] |
|
네임스페이스 |
|
|
메타데이터 |
|
참고 항목
