Share via


NavigationView.PaneOpening Event

Definition

Occurs when the NavigationView pane is opening.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.NavigationView.PaneOpening (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

// Register
event_token PaneOpening(TypedEventHandler<NavigationView, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
NavigationView::PaneOpening_revoker PaneOpening(auto_revoke_t, TypedEventHandler<NavigationView, IInspectable const&> const& handler) const;
public event TypedEventHandler<NavigationView,object> PaneOpening;
function onPaneOpening(eventArgs) { /* Your code */ }
navigationView.addEventListener("paneopening", onPaneOpening);
navigationView.removeEventListener("paneopening", onPaneOpening);
- or -
navigationView.onpaneopening = onPaneOpening;
Public Custom Event PaneOpening As TypedEventHandler(Of NavigationView, Object) 
<NavigationView PaneOpening="eventhandler" />

Event Type

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Applies to