Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ZoomCommand = new RoutedCommand( "ZoomCommand", typeof( MyCustomControl) );
- this.CommandBindings.Add( new CommandBinding( ZoomCommand, zoomCommandHandler,
- ( s, e ) => e.CanExecute = this.IsZoomEnabled ) );
- <KeyBinding Key="Add" CommandTarget="{Binding ElementName=myCustomControl}"
- Command="{Binding ElementName=myCustomControl, Path=ZoomCommand}" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement