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 사용하여 조작의 관성 동작을 지정할 수 있습니다. 및 속성을 사용하여 각 조작 유형에 대한 관성 동작을 TranslationBehaviorExpansionBehaviorRotationBehavior 개별적으로 지정할 수 있습니다. 각 속성은 관성 동작을 나타내는 개체의 형식이며 각 경우에 다음을 지정할 수 있습니다.

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

  • 관성 종료 시 조작의 원하는 위치입니다.

  • 관성의 원하는 감속입니다.

일반적으로 관성 종료 시 조작의 원하는 위치 또는 관성의 원하는 감속을 지정하지만 둘 다 지정하지는 않습니다.

조작에 대한 자세한 내용은 입력 개요를 참조하세요.

속성

Name Description
Device

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

(다음에서 상속됨 InputEventArgs)
ExpansionBehavior

확장 관성 이동 속도 저하 속도를 얻거나 설정합니다.

Handled

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

(다음에서 상속됨 RoutedEventArgs)
InitialVelocities

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

ManipulationContainer

속성이 상대적인 ManipulationOrigin 컨테이너를 가져옵니다.

ManipulationOrigin

조작이 시작된 지점을 가져오거나 설정합니다.

Manipulators

조작에 대한 터치 연락처를 나타내는 개체의 컬렉션을 가져옵니다.

OriginalSource

부모 클래스에서 조정 Source 하기 전에 순수 적중 테스트에 의해 결정된 원래 보고 원본을 가져옵니다.

(다음에서 상속됨 RoutedEventArgs)
RotationBehavior

회전 관성 이동 속도 저하 속도를 가져오거나 설정합니다.

RoutedEvent

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

(다음에서 상속됨 RoutedEventArgs)
Source

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

(다음에서 상속됨 RoutedEventArgs)
Timestamp

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

(다음에서 상속됨 InputEventArgs)
TranslationBehavior

선형 관성 이동 속도 저하 속도를 가져오거나 설정합니다.

메서드

Name Description
Cancel()

조작을 취소합니다.

Equals(Object)

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

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

기본 해시 함수로 사용됩니다.

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

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

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

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

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

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

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

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

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

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

ToString()

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

(다음에서 상속됨 Object)

적용 대상