开发者

Key binding in wpf

I have 开发者_StackOverflowproblem with key bindings. I can't set key for "+". Can somebody help me, what should I write in xaml and what should I write in .cs ???


Keybindings can be set at the Window level, so in XAML you'd add...

<Window.InputBindings>
  <KeyBinding Command="YourCommand" Key="+" />
</Window.InputBindings>

I assume you know how to provide a Command with Window.CommandBinding.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜