Share via


VisualInteractionSource.PointerWheelConfig 속성

정의

포인터 휠 입력에 대한 구성을 가져옵니다.

public:
 property InteractionSourceConfiguration ^ PointerWheelConfig { InteractionSourceConfiguration ^ get(); };
InteractionSourceConfiguration PointerWheelConfig();
public InteractionSourceConfiguration PointerWheelConfig { get; }
var interactionSourceConfiguration = visualInteractionSource.pointerWheelConfig;
Public ReadOnly Property PointerWheelConfig As InteractionSourceConfiguration

속성 값

포인터 휠 입력에 대한 구성입니다.

설명

기본적으로 VisualInteractionSource는 모든 유형의 입력에 대해 동일한 구성을 사용합니다. 이 속성을 사용하면 포인터 휠 입력을 위해 특별히 다른 구성을 제공할 수 있습니다.

예를 들어 터치 및 터치 패드 입력을 사용하여 이동(X, Y) 및 확대/축소를 제어하지만 확대/축소에만 포인터 휠 입력을 사용할 수 있습니다. 이 경우 PositionXSourceModePositionYSourceMode 의 구성을 재정의하여 포인터 휠 입력에 대해서만 사용하지 않도록 설정할 수 있습니다.

// Set the defaults for the VisualInteractionSource.
interactionSource.PositionXSourceMode = InteractionSourceMode.EnabledWithInertia;
interactionSource.PositionYSourceMode = InteractionSourceMode.EnabledWithInertia;
interactionSource.ScaleSourceMode = InteractionSourceMode.EnabledWithInertia;

// Modify the pointer wheel configuration to disable X and Y.
interactionSource.PointerWheelConfig.PositionXSourceMode =
    InteractionSourceRedirectionMode.Disabled;
interactionSource.PointerWheelConfig.PositionYSourceMode =
    InteractionSourceRedirectionMode.Disabled;

적용 대상