VisualInteractionSource.PointerWheelConfig Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the configuration for pointer wheel input.
public:
property InteractionSourceConfiguration ^ PointerWheelConfig { InteractionSourceConfiguration ^ get(); };
InteractionSourceConfiguration PointerWheelConfig();
public InteractionSourceConfiguration PointerWheelConfig { get; }
var interactionSourceConfiguration = visualInteractionSource.pointerWheelConfig;
Public ReadOnly Property PointerWheelConfig As InteractionSourceConfiguration
Property Value
The configuration for pointer wheel input.
Windows requirements
Device family |
Windows 10, version 1809 (introduced in 10.0.17763.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v7.0)
|
Remarks
By default, VisualInteractionSource uses the same configuration for all types of input. This property lets you provide a different configuration specifically for pointer wheel input.
For example, you might use touch and touchpad inputs to control panning (X, Y) and zoom, but use pointer wheel input only for zoom. In this case, you can override the configuration of PositionXSourceMode and PositionYSourceMode to disable them for pointer wheel input only.
// 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;
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for