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 屬性。