1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
<Window x:Class="WpfCS.Window4"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window4" Height="300" Width="300">
<Window.CommandBindings>
<CommandBinding Command="Help"
CanExecute="CommandBinding_CanExecute"
Executed="CommandBinding_Executed"/>
</Window.CommandBindings>
<Window.InputBindings>
<KeyBinding Command="Help"
Key="NumPad0"/>
</Window.InputBindings>
<Canvas>
<Button Command="Help">Click me</Button>
</Canvas>
</Window> |