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 替代中调用此方法。

适用于

另请参阅