NavigationViewPaneClosingEventArgs 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供 NavigationView.PaneClosing 事件的資料。
適用于 UWP 的對等 WinUI 2 API:Microsoft.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
- 繼承
- 屬性
Windows 需求
裝置系列 |
Windows 10, version 1803 (已於 10.0.17134.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)
|
屬性
Cancel |
取得或設定值,這個值指出是否應該取消事件。 適用于 UWP 的對等 WinUI 2 API:Microsoft.UI.Xaml.Controls.NavigationViewPaneClosingEventArgs.Cancel (Windows 應用程式 SDK,請參閱Windows 應用程式 SDK命名空間) 。 |