共用方式為


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)

參數

備註

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

適用於

另請參閱