次の方法で共有


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;

適用対象