NavigationViewSelectionChangedEventArgs 类

定义

提供 NavigationView.SelectionChanged 事件的数据。

public ref class NavigationViewSelectionChangedEventArgs sealed
/// [Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=5)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Version(1)]
class NavigationViewSelectionChangedEventArgs final
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 65536)]
class NavigationViewSelectionChangedEventArgs final
[Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=5)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Version(1)]
public sealed class NavigationViewSelectionChangedEventArgs
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
public sealed class NavigationViewSelectionChangedEventArgs
Public NotInheritable Class NavigationViewSelectionChangedEventArgs
继承
Object Platform::Object IInspectable NavigationViewSelectionChangedEventArgs
属性
Microsoft.UI.Xaml.CustomAttributes.MUXContractPropertyAttribute MarshalingBehaviorAttribute VersionAttribute ContractVersionAttribute

示例

提示

有关详细信息、设计指南和代码示例,请参阅 NavigationView

WinUI 3 库应用包括大多数 WinUI 3 控件、特性和功能的交互式示例。 通过 Microsoft Store 获取应用,或在 GitHub 上获取源代码。

属性

IsSettingsSelected

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

RecommendedNavigationTransitionInfo

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

SelectedItem

获取新选择的菜单项。

SelectedItemContainer

获取所选项的容器。

适用于