Condividi tramite


TwoPaneView.ModeChanged Evento

Definizione

Si verifica quando l'impostazione Mode di TwoPaneView è cambiata.

API WinUI 2 equivalente per UWP: Microsoft.UI.Xaml.Controls.TwoPaneView.ModeChanged (per WinUI nel SDK per app di Windows, vedi gli spazi dei nomi SDK per app di Windows).

// 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) 

Tipo evento

Si applica a

Vedi anche