ManipulationStartingEventArgs.Pivot 속성

정의

단일 지점 조작에 대한 피벗을 설명하는 개체를 가져오거나 설정합니다.

public:
 property System::Windows::Input::ManipulationPivot ^ Pivot { System::Windows::Input::ManipulationPivot ^ get(); void set(System::Windows::Input::ManipulationPivot ^ value); };
public System.Windows.Input.ManipulationPivot Pivot { get; set; }
member this.Pivot : System.Windows.Input.ManipulationPivot with get, set
Public Property Pivot As 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

설명

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

조작에 대 한 자세한 내용은 참조는 입력 개요합니다. 조작에 응답 하는 애플리케이션 예제를 보려면 연습: 만드는 첫 번째 터치 애플리케이션합니다.

적용 대상