UISettings.AutoHideScrollBarsChanged 事件

定义

AutoHideScrollBars 状态更改时调用的事件。

// Register
event_token AutoHideScrollBarsChanged(TypedEventHandler<UISettings, UISettingsAutoHideScrollBarsChangedEventArgs const&> const& handler) const;

// Revoke with event_token
void AutoHideScrollBarsChanged(event_token const* cookie) const;

// Revoke with event_revoker
UISettings::AutoHideScrollBarsChanged_revoker AutoHideScrollBarsChanged(auto_revoke_t, TypedEventHandler<UISettings, UISettingsAutoHideScrollBarsChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<UISettings,UISettingsAutoHideScrollBarsChangedEventArgs> AutoHideScrollBarsChanged;
function onAutoHideScrollBarsChanged(eventArgs) { /* Your code */ }
uISettings.addEventListener("autohidescrollbarschanged", onAutoHideScrollBarsChanged);
uISettings.removeEventListener("autohidescrollbarschanged", onAutoHideScrollBarsChanged);
- or -
uISettings.onautohidescrollbarschanged = onAutoHideScrollBarsChanged;
Public Custom Event AutoHideScrollBarsChanged As TypedEventHandler(Of UISettings, UISettingsAutoHideScrollBarsChangedEventArgs) 

事件类型

Windows 要求

设备系列
Windows 10, version 1903 (在 10.0.18362.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v8.0 中引入)

注解

此事件的处理程序在工作线程(而不是调用线程)上调用。

适用于

另请参阅