Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| <Window x:Class="WCSamples.Window1" | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| Title="commandWithHandler" Name="root" | |
| > | |
| <!-- <SnippetCommandHandlerCommandBinding> --> | |
| <Window.CommandBindings> | |
| <CommandBinding Command="ApplicationCommands.Open" | |
| Executed="OpenCmdExecuted" | |
| CanExecute="OpenCmdCanExecute"/> | |
| </Window.CommandBindings> | |
| <!-- </SnippetCommandHandlerCommandBinding> --> | |
| <!-- <SnippetCommandHandlerKeyBinding> --> | |
| <Window.InputBindings> | |
| <KeyBinding Command="ApplicationCommands.Open" | |
| Gesture="CTRL+R" /> | |
| </Window.InputBindings> | |
| <!-- </SnippetCommandHandlerKeyBinding> --> | |
| <StackPanel> | |
| <!-- <SnippetCommandHandlerCommandSource> --> | |
| <Button Command="ApplicationCommands.Open" Name="MyButton" | |
| Height="50" Width="200"> | |
| Open (KeyBindings: Ctrl+R, Ctrl+0) | |
| </Button> | |
| <!-- </SnippetCommandHandlerCommandSource> --> | |
| </StackPanel> | |
| </Window> |