共用方式為


NavigationViewDisplayModeChangedEventArgs 類別

定義

提供 NavigationView.DisplayModeChanged 事件的資料。

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

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

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

屬性

DisplayMode

取得新的顯示模式。

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

適用於