Gets the value that represents the Favorites command.
Assembly: PresentationCore (in PresentationCore.dll)
This command indicates the intention to manage and navigate to favorites.
There is no implementation for responding to thecommand on any given WPF class. As such, you need to provide an appropriate implementation, which is shown in the example.
The following example shows how to implement code that responds to the Frame.command in conjunction with a
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="SDKSample.Favorites">
<!-- NavigationCommands.Favorites --> <MenuItem Command="NavigationCommands.Favorites"> <MenuItem.CommandBindings> <!-- NavigationCommands.Favorites Binding--> <CommandBinding Command="NavigationCommands.Favorites" CanExecute="navigationCommandFavorites_CanExecute" Executed="navigationCommandFavorites_Executed" /> </MenuItem.CommandBindings> </MenuItem>
Available since 3.0