ManipulationPivot 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
한 지점의 사용자 입력을 사용하여 회전이 발생하는 방법을 지정합니다.
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. 이벤트에 대한 ManipulationStarting 이벤트 처리기에서 설정하는 Pivot 경우 사용자가 조작 중에 한 손가락을 사용할 때 조작에 회전 데이터가 포함됩니다. 이는 한 손가락을 사용하여 테이블의 종이 조각과 같은 개체를 회전할 수 있는 실제 상황을 시뮬레이션하기 위한 것입니다.
Pivot
null이 경우 사용자는 두 손가락을 사용하여 회전을 수행해야 합니다.
생성자
| Name | Description |
|---|---|
| ManipulationPivot() |
ManipulationPivot 클래스의 새 인스턴스를 초기화합니다. |
| ManipulationPivot(Point, Double) |
단일 지점 조작의 ManipulationPivot 지정된 지점을 사용하여 클래스의 새 인스턴스를 초기화합니다. |
속성
| Name | Description |
|---|---|
| Center |
단일 지점 조작의 중심을 가져오거나 설정합니다. |
| Radius |
단일 접촉 지점이 조작을 시작할 때 발생하는 회전 및 변환의 양을 결정하는 데 사용되는 피벗 주변 영역을 가져오거나 설정합니다. |
메서드
| Name | Description |
|---|---|
| Equals(Object) |
지정된 개체가 현재 개체와 같은지 여부를 확인합니다. (다음에서 상속됨 Object) |
| GetHashCode() |
기본 해시 함수로 사용됩니다. (다음에서 상속됨 Object) |
| GetType() |
현재 인스턴스의 Type 가져옵니다. (다음에서 상속됨 Object) |
| MemberwiseClone() |
현재 Object단순 복사본을 만듭니다. (다음에서 상속됨 Object) |
| ToString() |
현재 개체를 나타내는 문자열을 반환합니다. (다음에서 상속됨 Object) |