共用方式為


FlyoutBase.TryInvokeKeyboardAccelerator 方法

定義

嘗試叫用快速鍵 (快速鍵) 。

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 覆寫中呼叫這個方法。

適用於

另請參閱