gpt4 book ai didi

c# - TabControl 内的 WPF 句柄快捷方式(CTRL+F 搜索)

转载 作者:行者123 更新时间:2023-11-30 15:22:54 24 4
gpt4 key购买 nike

我需要处理 Ctrl+F 组合键以在我的 TabControl 中调用搜索功能。

OnKeyDown() 为按下的每个按钮调用,但我如何处理两个按钮的组合?

最佳答案

只需将其放入您的 xaml 中即可:

<Window.InputBindings>
<KeyBinding Command="ApplicationCommands.YourCommandToHandle"
Gesture="CTRL+F" />
</Window.InputBindings>

关于c# - TabControl 内的 WPF 句柄快捷方式(CTRL+F 搜索),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34995952/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com