共用方式為


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>