NavigationView.PaneOpened 事件

定义

打开 NavigationView 窗格时发生。

适用于 UWP 的等效 WinUI 2 APIMicrosoft.UI.Xaml.Controls.NavigationView.Pane 打开Windows 应用 SDK中 WinUI 的 (,请参阅Windows 应用 SDK命名空间) 。

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

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

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

事件类型

Windows 要求

设备系列
Windows 10, version 1803 (在 10.0.17134.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v6.0 中引入)

适用于