VisualInteractionSource.PositionYSourceMode Property

Definition

Source mode for the Y-axis.

The PositionYSourceMode property defines how interactions are processed for a VisualInteractionSource on the Y-axis. There are 3 types of InteractionSourceMode s to choose from: Interactions are Disabled, EnabledWithInertia and EnabledWithoutInertia. This property must be enabled to allow the VisualInteractionSource to send Y-axis data to InteractionTracker.

Equivalent WinUI property: Microsoft.UI.Composition.Interactions.VisualInteractionSource.PositionYSourceMode.

public:
 property InteractionSourceMode PositionYSourceMode { InteractionSourceMode get(); void set(InteractionSourceMode value); };
InteractionSourceMode PositionYSourceMode();

void PositionYSourceMode(InteractionSourceMode value);
public InteractionSourceMode PositionYSourceMode { get; set; }
var interactionSourceMode = visualInteractionSource.positionYSourceMode;
visualInteractionSource.positionYSourceMode = interactionSourceMode;
Public Property PositionYSourceMode As InteractionSourceMode

Property Value

InteractionSourceMode

Source mode for the Y-axis.

Applies to