NavigationCommands.BrowseForward 属性

定义

获取表示 Browse Forward 命令的值。

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

属性值

路由的 UI 命令。

默认值
键手势 Alt+RIGHT
UI 文本 向前

示例

以下示例演示如何 BrowseForward 与 a Frame. 如果向前堆栈上有日记条目,则Frame提供一个实现,该实现通过向前导航BrowseForward来响应Frame命令。

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<!-- NavigationCommands.BrowseForward -->
<MenuItem
  Command="NavigationCommands.BrowseForward"
  CommandTarget="{Binding ElementName=frame}" />
<!-- The following Frame is used to process NavigationCommands.BrowseForward commands -->
<Frame Name="frame" NavigationUIVisibility="Hidden" Source="Page1.xaml" />
</Window>

注解

此命令指示打算在日记中向前导航下一页。

FrameNavigationWindow 实现对响应 BrowseForward 命令的支持,尽管你不需要使用它;在许多情况下,响应该命令的实现是应用程序编写器的责任。

XAML 属性用法

<object property="NavigationCommands.BrowseForward"/>

适用于

另请参阅