NavigationCommands.Favorites 속성

정의

Favorites 명령을 나타내는 값을 가져옵니다.

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

속성 값

라우트된 UI 명령입니다.

기본값
키 제스처 CTRL+I
UI 텍스트 즐겨찾기

예제

다음 예제에서는 응답 하는 코드를 구현 하는 방법을 보여 줍니다 합니다 Favorites 와 함께에서 명령을 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>

설명

이 명령은 관리 하 고 즐겨찾기 이동 하려고 함을 나타냅니다.

지정된 WPF 클래스의 Favorites 명령에 응답하기 위한 구현은 없습니다. 따라서이 예제에 나와 있는 적절 한 구현을 제공 해야 합니다.

XAML 특성 사용

<object property="NavigationCommands.Favorites"/>  

적용 대상

추가 정보