共用方式為


UIElement.TryInvokeKeyboardAccelerator 方法

定義

嘗試搜尋 UIElement 的整個視覺化樹狀結構,以叫用 鍵盤快速鍵 (或快速鍵)

public:
 virtual void TryInvokeKeyboardAccelerator(ProcessKeyboardAcceleratorEventArgs ^ args) = TryInvokeKeyboardAccelerator;
void TryInvokeKeyboardAccelerator(ProcessKeyboardAcceleratorEventArgs const& args);
public void TryInvokeKeyboardAccelerator(ProcessKeyboardAcceleratorEventArgs args);
function tryInvokeKeyboardAccelerator(args)
Public Sub TryInvokeKeyboardAccelerator (args As ProcessKeyboardAcceleratorEventArgs)

參數

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

備註

叫用快速鍵且您想要影響預設加速器處理時,請在 OnProcessKeyboardAccelerators 覆寫中呼叫這個方法。

適用於

另請參閱