Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.74 KB

scrollviewer_verticalscrollmode.md

File metadata and controls

33 lines (23 loc) · 1.74 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Controls.ScrollViewer.VerticalScrollMode
winrt property

Microsoft.UI.Xaml.Controls.ScrollViewer.VerticalScrollMode

-description

Gets or sets a value that determines how manipulation input influences scrolling behavior on the vertical axis.

-xaml-syntax

<ScrollViewer VerticalScrollMode="scrollModeMemberName" />
-or-
<object ScrollViewer.VerticalScrollMode="scrollModeMemberName"/>

-property-value

A value of the enumeration. The typical default (as set through the default template, not class initialization) is Enabled.

-remarks

Scrolling behavior can also be set through a ScrollViewer.VerticalScrollMode XAML attached property usage, or by calling SetVerticalScrollMode. This is for cases where the ScrollViewer is implicit, such as when the ScrollViewer exists in the default template for a GridView, and you want to be able to influence the scrolling behavior without accessing template parts. Controls with a ScrollViewer as part of their composition typically use template binding such that setting the attached property at the level of the control will change the scroll behavior of the ScrollViewer part within the control. Otherwise, it may be necessary to replace the template in order to change the scroll behavior of a ScrollViewer part.

-examples

-see-also

Scroll viewer controls, Guidelines for panning