共用方式為


ScrollView.VerticalScrollMode 屬性

定義

取得或設定值,決定操作輸入如何影響水平軸上的捲動行為。

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

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

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

屬性值

列舉值。 預設為 Auto

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

適用於