NavigationCommands.Favorites 속성

정의

Favorites 명령을 나타내는 값을 가져옵니다.Gets the value that represents the Favorites command.

public:
 static property System::Windows::Input::RoutedUICommand ^ Favorites { System::Windows::Input::RoutedUICommand ^ get(); };
public static System.Windows.Input.RoutedUICommand Favorites { get; }
member this.Favorites : System.Windows.Input.RoutedUICommand
Public Shared ReadOnly Property Favorites As RoutedUICommand

속성 값

라우트된 UIUI 명령입니다.The routed UIUI command.

기본값Default Values
키 제스처Key Gesture Ctrl+ICTRL+I
UI 텍스트UI Text 즐겨찾기Favorites

예제

다음 예제에서는 응답 하는 코드를 구현 하는 방법을 보여 줍니다 합니다 Favorites 와 함께에서 명령을 Frame합니다.The following example shows how to implement code that responds to the Favorites command in conjunction with a Frame.

<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>
<Frame Name="frame" NavigationUIVisibility="Hidden" Source="Page1.xaml" />
</Window>

설명

이 명령은 관리 하 고 즐겨찾기 이동 하려고 함을 나타냅니다.This command indicates the intention to manage and navigate to favorites.

응답에 대 한 구현은 합니다 Favorites 지정 된 모든 명령을 WPFWPF 클래스입니다.There is no implementation for responding to the Favorites command on any given WPFWPF class. 따라서이 예제에 나와 있는 적절 한 구현을 제공 해야 합니다.As such, you need to provide an appropriate implementation, which is shown in the example.

XAML 특성 사용XAML Attribute Usage

<object property="NavigationCommands.Favorites"/>  

적용 대상

추가 정보