ScrollViewer.SetVerticalScrollBarVisibility 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置指定元素上的 VerticalScrollBarVisibility 依赖属性/ ScrollViewer.VerticalScrollBarVisibility
XAML 附加属性的值。
public:
static void SetVerticalScrollBarVisibility(DependencyObject ^ element, ScrollBarVisibility verticalScrollBarVisibility);
static void SetVerticalScrollBarVisibility(DependencyObject const& element, ScrollBarVisibility const& verticalScrollBarVisibility);
public static void SetVerticalScrollBarVisibility(DependencyObject element, ScrollBarVisibility verticalScrollBarVisibility);
function setVerticalScrollBarVisibility(element, verticalScrollBarVisibility)
Public Shared Sub SetVerticalScrollBarVisibility (element As DependencyObject, verticalScrollBarVisibility As ScrollBarVisibility)
参数
- element
- DependencyObject
要在其上设置属性值的元素。
- verticalScrollBarVisibility
- ScrollBarVisibility
要设置的值。
注解
有关详细信息,请参阅 VerticalScrollBarVisibility 属性。