TwoPaneView.ModeChanged 事件

定义

在 TwoPaneView 的模式更改时发生。

适用于 UWP 的等效 WinUI 2 APIMicrosoft.UI.Xaml.Controls.TwoPaneView.ModeChanged (在Windows 应用 SDK中适用于 WinUI,请参阅 ) Windows 应用 SDK命名空间

// Register
event_token ModeChanged(TypedEventHandler<TwoPaneView, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
TwoPaneView::ModeChanged_revoker ModeChanged(auto_revoke_t, TypedEventHandler<TwoPaneView, IInspectable const&> const& handler) const;
public event TypedEventHandler<TwoPaneView,object> ModeChanged;
function onModeChanged(eventArgs) { /* Your code */ }
twoPaneView.addEventListener("modechanged", onModeChanged);
twoPaneView.removeEventListener("modechanged", onModeChanged);
- or -
twoPaneView.onmodechanged = onModeChanged;
Public Custom Event ModeChanged As TypedEventHandler(Of TwoPaneView, Object) 

事件类型

适用于

另请参阅