ManipulationInertiaStartingEventArgs 클래스

정의

ManipulationInertiaStarting 이벤트에 대한 데이터를 제공합니다.

public ref class ManipulationInertiaStartingEventArgs sealed : System::Windows::Input::InputEventArgs
public sealed class ManipulationInertiaStartingEventArgs : System.Windows.Input.InputEventArgs
type ManipulationInertiaStartingEventArgs = class
    inherit InputEventArgs
Public NotInheritable Class ManipulationInertiaStartingEventArgs
Inherits InputEventArgs
상속
ManipulationInertiaStartingEventArgs

예제

다음 예제와 ManipulationInertiaStarting 이벤트 처리기에 대해 변환, 확장 등 회전 관성 도중 사용 되는 감속을 가져오거나 설정 합니다. 이 예제는에서 더 큰 예제의 일부 연습: 만드는 첫 번째 터치 애플리케이션합니다.

void Window_InertiaStarting(object sender, ManipulationInertiaStartingEventArgs e)
{

    // Decrease the velocity of the Rectangle's movement by 
    // 10 inches per second every second.
    // (10 inches * 96 pixels per inch / 1000ms^2)
    e.TranslationBehavior.DesiredDeceleration = 10.0 * 96.0 / (1000.0 * 1000.0);

    // Decrease the velocity of the Rectangle's resizing by 
    // 0.1 inches per second every second.
    // (0.1 inches * 96 pixels per inch / (1000ms^2)
    e.ExpansionBehavior.DesiredDeceleration = 0.1 * 96 / (1000.0 * 1000.0);

    // Decrease the velocity of the Rectangle's rotation rate by 
    // 2 rotations per second every second.
    // (2 * 360 degrees / (1000ms^2)
    e.RotationBehavior.DesiredDeceleration = 720 / (1000.0 * 1000.0);

    e.Handled = true;
}
Private Sub Window_InertiaStarting(ByVal sender As Object,
                                   ByVal e As ManipulationInertiaStartingEventArgs)

    ' Decrease the velocity of the Rectangle's movement by 
    ' 10 inches per second every second.
    ' (10 inches * 96 pixels per inch / 1000ms^2)
    e.TranslationBehavior.DesiredDeceleration = 10.0 * 96.0 / (1000.0 * 1000.0)

    ' Decrease the velocity of the Rectangle's resizing by 
    ' 0.1 inches per second every second.
    ' (0.1 inches * 96 pixels per inch / (1000ms^2)
    e.ExpansionBehavior.DesiredDeceleration = 0.1 * 96 / (1000.0 * 1000.0)

    ' Decrease the velocity of the Rectangle's rotation rate by 
    ' 2 rotations per second every second.
    ' (2 * 360 degrees / (1000ms^2)
    e.RotationBehavior.DesiredDeceleration = 720 / (1000.0 * 1000.0)

    e.Handled = True
End Sub

설명

사용할 수는 ManipulationInertiaStartingEventArgs 관성 조작의 동작을 지정 하는 개체입니다. 사용 하 여 각 유형의 조작에 대 한 초기 동작을 개별적으로 지정할 수 있습니다 합니다 TranslationBehavior, ExpansionBehavior, 및 RotationBehavior 속성입니다. 각 속성은 각 사례에 초기 동작을 나타내는 개체의 형식, 다음을 지정할 수 있습니다.

  • 관성이 시작 될 때의 초기 속도입니다.

  • 조작이 관성이 끝날 때의 원하는 위치입니다.

  • 관성의 감속 합니다.

일반적으로 조작이 관성이 끝날 때의 원하는 위치 또는 관성, 하지만 둘 다의 원하는 감속 지정 합니다.

조작에 대 한 자세한 내용은 참조는 입력 개요합니다.

속성

Device

이 이벤트를 시작한 입력 디바이스를 가져옵니다.

(다음에서 상속됨 InputEventArgs)
ExpansionBehavior

확장 관성 이동이 느려지는 속도를 가져오거나 설정합니다.

Handled

경로를 따라 이동할 때 라우트된 이벤트의 현재 이벤트 처리 상태를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 RoutedEventArgs)
InitialVelocities

관성이 시작되기 전에 발생하는 조작에 대한 변경 속도를 가져옵니다.

ManipulationContainer

ManipulationOrigin 속성이 기준으로 하는 컨테이너를 가져옵니다.

ManipulationOrigin

조작이 발생한 점을 가져오거나 설정합니다.

Manipulators

조작을 위한 터치 접촉을 나타내는 개체의 컬렉션을 가져옵니다.

OriginalSource

부모 클래스에 의한 Source 조정 앞에 순수 적중 횟수 테스트에서 결정한 원본 보고 소스를 가져옵니다.

(다음에서 상속됨 RoutedEventArgs)
RotationBehavior

회전 관성 이동이 느려지는 속도를 가져오거나 설정합니다.

RoutedEvent

RoutedEventArgs 인스턴스와 연결된 RoutedEvent를 가져오거나 설정합니다.

(다음에서 상속됨 RoutedEventArgs)
Source

이벤트를 발생시킨 개체에 대한 참조를 가져오거나 설정합니다.

(다음에서 상속됨 RoutedEventArgs)
Timestamp

이 이벤트가 발생한 시간을 가져옵니다.

(다음에서 상속됨 InputEventArgs)
TranslationBehavior

선형 관성 이동이 느려지는 속도를 가져오거나 설정합니다.

메서드

Cancel()

조작을 취소합니다.

Equals(Object)

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

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

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

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

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

(다음에서 상속됨 Object)
InvokeEventHandler(Delegate, Object)

형식별 방식으로 이벤트 처리기를 호출하여 이벤트 시스템의 효율성을 높입니다.

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

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

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

파생된 클래스에서 재정의되는 경우 인스턴스의 Source 속성 값이 변경될 때마다 알림 콜백 진입점을 제공합니다.

(다음에서 상속됨 RoutedEventArgs)
SetInertiaParameter(InertiaParameters2D)

관성 도중 조작의 동작을 지정합니다.

ToString()

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

(다음에서 상속됨 Object)

적용 대상