Share via


NavigationViewSelectionChangedEventArgs Class

Definition

Provides data for the NavigationView.SelectionChanged event.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.NavigationViewSelectionChangedEventArgs (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

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
Inheritance
Object Platform::Object IInspectable NavigationViewSelectionChangedEventArgs
Attributes

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Remarks

Version history

Windows version SDK version Value added
1809 17763 RecommendedNavigationTransitionInfo
1809 17763 SelectedItemContainer

Properties

IsSettingsSelected

Gets a value that indicates whether the SelectedItem is the menu item for Settings.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.NavigationViewSelectionChangedEventArgs.IsSettingsSelected (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

RecommendedNavigationTransitionInfo

Gets the navigation transition recommended for the direction of the navigation.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.NavigationViewSelectionChangedEventArgs.RecommendedNavigationTransitionInfo (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

SelectedItem

Gets the newly selected menu item.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.NavigationViewSelectionChangedEventArgs.SelectedItem (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

SelectedItemContainer

Gets the container for the selected item.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.NavigationViewSelectionChangedEventArgs.SelectedItemContainer (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

Applies to