Favorites Property

NavigationCommands.Favorites Property


Gets the value that represents the Favorites command.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public static RoutedUICommand Favorites { get; }

Property Value

Type: System.Windows.Input.RoutedUICommand

The routed UI command.

Default Values

Key Gesture


UI Text


This command indicates the intention to manage and navigate to favorites.

There is no implementation for responding to the Favorites command on any given WPF class. As such, you need to provide an appropriate implementation, which is shown in the example.

<object property="NavigationCommands.Favorites"/>

The following example shows how to implement code that responds to the Favorites command in conjunction with a Frame.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft