Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.96 KB

scrollviewer_verticalscrollbarvisibility.md

File metadata and controls

36 lines (25 loc) · 1.96 KB
-api-id -api-type
P:Windows.UI.Xaml.Controls.ScrollViewer.VerticalScrollBarVisibility
winrt property

Windows.UI.Xaml.Controls.ScrollViewer.VerticalScrollBarVisibility

-description

Gets or sets a value that indicates whether a vertical ScrollBar should be displayed.

-xaml-syntax

<ScrollViewer VerticalScrollBarVisibility="scrollBarVisibilityMemberName"/>
-or-
<object ScrollViewer.VerticalScrollBarVisibility="scrollBarVisibilityMemberName"/>

-xaml-values

scrollBarVisibilityMemberName
scrollBarVisibilityMemberNameA named constant of the ScrollBarVisibility enumeration, such as Auto.
## -property-value A [ScrollBarVisibility](scrollbarvisibility.md) value that indicates whether a vertical [ScrollBar](../windows.ui.xaml.controls.primitives/scrollbar.md) should be displayed. The default value is **Visible**.

-remarks

Scrolling behavior can also be set through a ScrollViewer.VerticalScrollBarVisibility XAML attached property usage, or by calling SetVerticalScrollBarVisibility. 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