UISettings.AnimationsEnabledChanged 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于 AnimationsEnabled 屬性的值變更時。
// Register
event_token AnimationsEnabledChanged(TypedEventHandler<UISettings, UISettingsAnimationsEnabledChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void AnimationsEnabledChanged(event_token const* cookie) const;
// Revoke with event_revoker
UISettings::AnimationsEnabledChanged_revoker AnimationsEnabledChanged(auto_revoke_t, TypedEventHandler<UISettings, UISettingsAnimationsEnabledChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<UISettings,UISettingsAnimationsEnabledChangedEventArgs> AnimationsEnabledChanged;
function onAnimationsEnabledChanged(eventArgs) { /* Your code */ }
uISettings.addEventListener("animationsenabledchanged", onAnimationsEnabledChanged);
uISettings.removeEventListener("animationsenabledchanged", onAnimationsEnabledChanged);
- or -
uISettings.onanimationsenabledchanged = onAnimationsEnabledChanged;
Public Custom Event AnimationsEnabledChanged As TypedEventHandler(Of UISettings, UISettingsAnimationsEnabledChangedEventArgs)
事件類型
Windows 需求
裝置系列 |
Windows 10, version 2004 (已於 10.0.19041.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v10.0 引進)
|