ManipulationPivot 클래스

정의

하나의 사용자 입력 점에서 회전이 수행되는 방법을 지정합니다.

public ref class ManipulationPivot
public class ManipulationPivot
type ManipulationPivot = class
Public Class ManipulationPivot
상속
ManipulationPivot

예제

다음 예제에서는 이벤트 처리기를 ManipulationStarting 이벤트 집합과 ManipulationStartingEventArgs.Pivot 속성입니다. 이 예제를 테스트 하려면의 단계를 따릅니다 연습: 만드는 첫 번째 터치 애플리케이션 4 단계에서 코드를이 코드로 바꿉니다.

void Window_ManipulationStarting(object sender, ManipulationStartingEventArgs e)
{
    // Set the ManipulationPivot so that the element rotates as it is
    // moved with one finger.
    FrameworkElement element = e.OriginalSource as FrameworkElement;
    ManipulationPivot pivot = new ManipulationPivot();
    pivot.Center = new Point(element.ActualWidth / 2, element.ActualHeight / 2);
    pivot.Radius = 20;
    e.Pivot = pivot;

    e.ManipulationContainer = this;
    e.Handled = true;
}
Private Sub Window_ManipulationStarting(ByVal sender As Object, ByVal e As ManipulationStartingEventArgs)
    ' Set the ManipulationPivot so that the element rotates as it is
    ' moved with one finger.
    Dim element As FrameworkElement = TryCast(e.OriginalSource, FrameworkElement)
    Dim pivot As New ManipulationPivot()
    pivot.Center = New Point(element.ActualWidth / 2, element.ActualHeight / 2)
    pivot.Radius = 20
    e.Pivot = pivot

    e.ManipulationContainer = Me
    e.Handled = True
End Sub

설명

합니다 ManipulationStartingEventArgs.Pivot 속성은 한 ManipulationPivot합니다. 설정한 경우 Pivot 에 대 한 이벤트 처리기는 ManipulationStarting 이벤트 조작은 데이터가 회전 조작 하는 동안 사용자가 한 번 사용 하는 경우. 이 테이블에는 종이 등의 개체를 회전 하려면 한 손가락을 사용할 수 있는 실제 상황을 시뮬레이션 하는 것입니다. 경우는 Pivotnull, 사용자 회전 시킬 두 손가락을 사용 해야 합니다.

생성자

ManipulationPivot()

ManipulationPivot 클래스의 새 인스턴스를 초기화합니다.

ManipulationPivot(Point, Double)

단일 지점 조작의 지정된 지점에서 ManipulationPivot 클래스의 새 인스턴스를 초기화합니다.

속성

Center

단일 지점 조작의 중심을 가져오거나 설정합니다.

Radius

단일 접촉 지점에서 조작이 시작될 때 회전 및 변환이 수행되는 양을 결정하는 데 사용되는 피벗을 중심으로 한 영역을 가져오거나 설정합니다.

메서드

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상