InteractionSourceConfiguration.PositionYSourceMode 属性

定义

获取或设置一个值,该值指示如何处理 Y 轴上的此 VisualInteractionSource 输入的交互。

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

void PositionYSourceMode(InteractionSourceRedirectionMode value);
public InteractionSourceRedirectionMode PositionYSourceMode { get; set; }
var interactionSourceRedirectionMode = interactionSourceConfiguration.positionYSourceMode;
interactionSourceConfiguration.positionYSourceMode = interactionSourceRedirectionMode;
Public Property PositionYSourceMode As InteractionSourceRedirectionMode

属性值

Y 轴的源模式。 默认情况下,它采用 VisualInteractionTracker.PositionYSourceMode 的值。

注解

此属性替代 VisualInteractionSource.PositionYSourceMode 的配置。 必须启用它才能允许 VisualInteractionSource 将 Y 轴数据发送到 InteractionTracker

有关详细信息,请参阅 VisualInteractionSource.PointerWheelConfig

适用于

另请参阅

  • <xref:Microsoft.UI.Composition.Interactions.VisualInteractionSource.PointerWheelConfig%0aP%3aMicrosoft.UI.Composition.Interactions.VisualInteractionSource.PositionYSourceMode>