NavigationCommands.BrowseHome 속성


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

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

속성 값

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

기본값Default Values
키 제스처Key Gesture Alt+HomeALT+HOME
UI 텍스트UI Text Home


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

<!-- NavigationCommands.BrowseHome -->
<MenuItem Command="NavigationCommands.BrowseHome">
    <!-- NavigationCommands.BrowseHome Binding-->
      Executed="navigationCommandBrowseHome_Executed" />
<Frame Name="frame" NavigationUIVisibility="Hidden" Source="Page1.xaml" />
using System.Windows;
using System.Windows.Input;

namespace SDKSample
    public partial class BrowseHome : Window
        public BrowseHome()

        void navigationCommandBrowseHome_CanExecute(object sender, CanExecuteRoutedEventArgs e)
            // Can always navigate home
            e.CanExecute = true;

        void navigationCommandBrowseHome_Executed(object target, ExecutedRoutedEventArgs e)
            // Implement custom BrowseHome handling code

Namespace SDKSample
    Partial Public Class BrowseHome
        Inherits Window
        Public Sub New()
        End Sub

        Private Sub navigationCommandBrowseHome_CanExecute(ByVal sender As Object, ByVal e As CanExecuteRoutedEventArgs)
            ' Can always navigate home
            e.CanExecute = True
        End Sub

        Private Sub navigationCommandBrowseHome_Executed(ByVal target As Object, ByVal e As ExecutedRoutedEventArgs)
            ' Implement custom BrowseHome handling code
        End Sub
    End Class
End Namespace


이 명령은 홈 탐색 하려고 함을 나타냅니다.This command indicates the intention to navigate home.

응답에 대 한 구현은 합니다 BrowseHome 지정 된 모든 명령을 WPFWPF 클래스입니다.There is no implementation for responding to the BrowseHome 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.BrowseHome"/>  

적용 대상

추가 정보