NavigationViewSelectionChangedEventArgs 类

定义

public ref class NavigationViewSelectionChangedEventArgs 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 NavigationViewSelectionChangedEventArgs final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class NavigationViewSelectionChangedEventArgs 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 NavigationViewSelectionChangedEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class NavigationViewSelectionChangedEventArgs
Public NotInheritable Class NavigationViewSelectionChangedEventArgs
继承
Object Platform::Object IInspectable NavigationViewSelectionChangedEventArgs
属性

Windows 要求

设备系列
Windows 10 Fall Creators Update (在 10.0.16299.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v5.0 中引入)

注解

版本历史记录

Windows 版本 SDK 版本 已添加值
1809 17763 RecommendedNavigationTransitionInfo
1809 17763 SelectedItemContainer

属性

IsSettingsSelected

获取一个值,该值指示 SelectedItem 是否是“设置”的菜单项。

适用于 UWP 的等效 WinUI 2 APIMicrosoft.UI.Xaml.Controls.NavigationViewSelectionChangedEventArgs.IsSettingsSelected (in Windows 应用 SDK,请参阅Windows 应用 SDK命名空间) 。

RecommendedNavigationTransitionInfo

获取建议用于导航方向的导航切换。

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

SelectedItem

获取新选择的菜单项。

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

SelectedItemContainer

获取所选项的容器。

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

适用于