InteractionTrackerInertiaStateEnteredArgs 클래스

정의

IInteractionTrackerOwner.InertiaStateEntered 콜백에 대한 인수입니다.

InteractionTrackerOwner.InertiaStateEntered 클래스는 InteractionTracker가 관성 상태가 될 때 액세스 가능하고 최신 속성 값을 정의합니다. InertiaStateEntered 이벤트에 등록된 경우 이 개체의 속성 값은 관성 상태의 시작 부분에 있는 시스템에서 계산한 결과를 나타냅니다. 수정된 자연 휴식 위치를 사용하면 스크롤 가상화와 같은 시나리오를 사용할 수 있습니다.

public ref class InteractionTrackerInertiaStateEnteredArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.LiftedContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class InteractionTrackerInertiaStateEnteredArgs final
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
class InteractionTrackerInertiaStateEnteredArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.LiftedContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class InteractionTrackerInertiaStateEnteredArgs
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
public sealed class InteractionTrackerInertiaStateEnteredArgs
Public NotInheritable Class InteractionTrackerInertiaStateEnteredArgs
상속
Object Platform::Object IInspectable InteractionTrackerInertiaStateEnteredArgs
특성

예제

public void InertiaStateEntered(InteractionTracker sender,     InteractionTrackerInertiaStateEnteredArgs args)
{
  // Natural and Modified Resting Positions and Scale
  Vector3 naturalRestPos = args.NaturalRestingPosition;
  Vector3 modifiedRestPos = (Vector3)args.ModifiedRestingPosition;
  float naturalRestScale = args.NaturalRestingScale;
  float modifiedRestScale = (float) args.ModifiedRestingScale;

  // Position and Scale velocity of InteractionTracker when entering Inertia
  Vector3 posVelocity = args.PositionVelocityInPixelsPerSecond;
  float scaleVelocity = args.ScaleVelocityInPercentPerSecond;

  // The ID for the request that triggered the callback
  int id = args.RequestId;
}

속성

IsFromBinding

이 상태가 바인딩된 추적기와의 상호 작용을 통해 이 상태가 입력되었는지 여부를 나타내는 값을 가져옵니다.

IsInertiaFromImpulse

관성의 결과가 임펄스의 결과인지 여부를 나타내는 값을 가져옵니다.

ModifiedRestingPosition

InteractionTrackerInertiaModifier및 경계가 적용된 후 관성 완료 시 InteractionTracker의 휴식 위치입니다.

ModifiedRestingPosition 속성은 InteractionTracker 의 최종 휴식 위치가 상호 작용을 기반으로 하는 위치의 시스템 계산을 나타냅니다. NaturalRestingPosition과 달리 ModifiedRestingPosition은 InertiaModifiers 및 최소/최대 경계와 같은 InteractionTracker의 동작에 영향을 주는 다른 요인에 따라 계산됩니다.

ModifiedRestingScale

InteractionTrackerInertiaModifiers 및 경계가 적용된 후 관성 완료 시 InteractionTracker의 휴식 배율입니다.

ModifiedRestingScale 속성은 InteractionTracker 의 최종 휴식 크기 조정 위치가 상호 작용을 기반으로 하는 위치의 시스템 계산을 나타냅니다. NaturalRestingScale과 달리 ModifiedRestingScale은 InertiaModifiers 및 최소/최대 경계와 같은 InteractionTracker의 동작에 영향을 주는 다른 요인에 따라 계산됩니다.

NaturalRestingPosition

한정자 또는 경계가 적용되지 않고 관성 완료 시 InteractionTracker의 휴식 위치입니다.

NaturalRestingPosition 속성은 상호 작용을 기반으로 하는 InteractionTracker 의 최종 자연 휴식 위치에 대한 시스템의 계산을 나타냅니다. ModifiedRestingPosition과 달리 NaturalRestingPosition은 InertiaModifiers 및 최소/최대 경계와 같은 InteractionTracker의 동작에 영향을 주는 다른 요소 없이 계산됩니다.

NaturalRestingScale

InteractionTrackerInertiaModifier또는 경계를 고려하지 않고 관성 완료 시 InteractionTracker의 휴식 배율입니다.

NaturalRestingScale 속성은 상호 작용을 기반으로 하는 InteractionTracker 의 최종 자연 휴식 배율 위치에 대한 시스템의 계산을 나타냅니다. ModifiedRestingScale과 달리 NaturalRestingScale은 InteractionTrackerInerInertiaModifier및 Min/Max 경계와 같은 InteractionTracker의 동작에 영향을 주는 다른 요소 없이 계산됩니다.

PositionVelocityInPixelsPerSecond

InteractionTracker 위치의 속도입니다.

PositionVelocityInPixelsPerSecond 속성은 관성 상태에 들어갔을 때 InteractionTracker 의 위치 속도를 나타냅니다.

RequestId

콜백을 트리거한 요청의 ID입니다. InteractionTracker가 관성 상태로 들어가도록 한 요청의 ID를 나타냅니다(InertiaStateEntered 콜백이 트리거됨). RequestID 속성은 요청이 InteractionTracker의 상태를 변경하려고 할 때마다 증가합니다.

ScaleVelocityInPercentPerSecond

InteractionTracker의 크기 조정 속도입니다.

ScaleVelocityInPercentPerSecond 속성은 관성 상태에 들어갔을 때 InteractionTracker 의 배율 속도를 나타냅니다.

적용 대상