共用方式為


NavigationViewPaneClosingEventArgs 類別

定義

提供 NavigationView.PaneClosing 事件的資料。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.NavigationViewPaneClosingEventArgs (Windows 應用程式 SDK,請參閱Windows 應用程式 SDK命名空間) 。

public ref class NavigationViewPaneClosingEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class NavigationViewPaneClosingEventArgs final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class NavigationViewPaneClosingEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class NavigationViewPaneClosingEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class NavigationViewPaneClosingEventArgs
Public NotInheritable Class NavigationViewPaneClosingEventArgs
繼承
Object Platform::Object IInspectable NavigationViewPaneClosingEventArgs
屬性

Windows 需求

裝置系列
Windows 10, version 1803 (已於 10.0.17134.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)

屬性

Cancel

取得或設定值,這個值指出是否應該取消事件。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.NavigationViewPaneClosingEventArgs.Cancel (Windows 應用程式 SDK,請參閱Windows 應用程式 SDK命名空間)

適用於