共用方式為


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 引進)

備註

此事件的處理常式是在背景工作執行緒上呼叫,而不是呼叫執行緒。

適用於

另請參閱