共用方式為


ScrollPresenter.VerticalScrollMode 屬性

定義

取得或設定值,這個值會決定操作輸入如何影響垂直軸上的捲動行為。

public:
 property ScrollingScrollMode VerticalScrollMode { ScrollingScrollMode get(); void set(ScrollingScrollMode value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultVerticalScrollMode")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultVerticalScrollMode")]
ScrollingScrollMode VerticalScrollMode();

void VerticalScrollMode(ScrollingScrollMode value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultVerticalScrollMode")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultVerticalScrollMode")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultVerticalScrollMode")]
ScrollingScrollMode VerticalScrollMode();

void VerticalScrollMode(ScrollingScrollMode value);
public ScrollingScrollMode VerticalScrollMode { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultVerticalScrollMode")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultVerticalScrollMode")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultVerticalScrollMode")]
public ScrollingScrollMode VerticalScrollMode { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultVerticalScrollMode")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultVerticalScrollMode")] set; }
var scrollingScrollMode = scrollPresenter.verticalScrollMode;
scrollPresenter.verticalScrollMode = scrollingScrollMode;
Public Property VerticalScrollMode As ScrollingScrollMode

屬性值

列舉值。 預設為 Auto

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

適用於