Share via


NavigationCommands.BrowseStop 屬性

定義

取得代表 Browse Stop 命令的值。

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

屬性值

路由的UI命令。

預設值
按鍵動作 ALT+ESC
UI 文字 Stop

範例

下列範例示範如何搭配 Frame使用 BrowseStop 。 提供Frame實作,藉由停止目前的Frame瀏覽來回應BrowseStop命令。

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

備註

此命令指出停止瀏覽器載入的意圖。

FrameNavigationWindow 實作回應 BrowseStop 命令的支持,雖然您不需要使用它;在許多情況下,響應該命令的實作是應用程式寫入器的責任。

XAML Attribute Usage

<object property="NavigationCommands.BrowseStop"/>  

適用於

另請參閱