NavigationView.PaneClosing 이벤트

정의

NavigationView 창이 닫히면 발생합니다.

UWP에 해당하는 WinUI 2 API: Microsoft.UI.Xaml.Controls.NavigationView.PaneClosing(Windows 앱 SDK WinUI의 경우 Windows 앱 SDK 네임스페이스 참조).

// Register
event_token PaneClosing(TypedEventHandler<NavigationView, NavigationViewPaneClosingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
NavigationView::PaneClosing_revoker PaneClosing(auto_revoke_t, TypedEventHandler<NavigationView, NavigationViewPaneClosingEventArgs const&> const& handler) const;
public event TypedEventHandler<NavigationView,NavigationViewPaneClosingEventArgs> PaneClosing;
function onPaneClosing(eventArgs) { /* Your code */ }
navigationView.addEventListener("paneclosing", onPaneClosing);
navigationView.removeEventListener("paneclosing", onPaneClosing);
- or -
navigationView.onpaneclosing = onPaneClosing;
Public Custom Event PaneClosing As TypedEventHandler(Of NavigationView, NavigationViewPaneClosingEventArgs) 
<NavigationView PaneClosing="eventhandler" />

이벤트 유형

Windows 요구 사항

디바이스 패밀리
Windows 10, version 1803 (10.0.17134.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v6.0에서 도입되었습니다.)

적용 대상