Is there a way to easily set this up in XAML, or does it need to be done programmatically by trapping a keydown event?
How can i make this work when using .NET Framework 3.5 instead of 4?
Hello,
I can say that the KeyBinding’s Command Property expects an instance of a class that implements ICommand interface, so if you use a class that doesn’t implement it you will get an XamlParseException.
Hope this helps you.
Hi,
Instead of adding a new class MyCommand, could I call a method within another class:
<KeyBinding.Command> <local:MyCommand.MethodToSelectAndSubmit/> </KeyBinding.Command>
Basically what I am trying to do is to have a button that once pressed will select all rows and will submit them to a class that will something with them, and after update the rows.
Is that possible?
Regards
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into your post and I created a sample project for you with that functionality. Basically I created a custom Command to select all records and added it in XAML. I also defined it to be executed, when the user presses Ctrl + A.
Feel free to write me if you have further questions.