DataGrid Keyboard Gesture

Sep 24, 2008 at 5:23 PM

I have a added a command binding in XAML to a Window that contains a datagrid.  The CanExecute and Execute handlers for the command live within the main window's code behind file. CanExecute always returns true for my test.

I also have a toolbar button in the same window that I associate to the command via it's command property.  When I click the toolbar button, my command execute logic grabs the selected cell from the datagrid and executes successfully.

However, when I select a cell in the data grid and use the keyboard gesture I assigned the command "CTRL+G", the keyboard gesture never kicks off the command execute logic.  Do I need to add anything to the datagrid to make this work?  My understanding is that this would have bubbled up to the handler in my main window.

Any Ideas?  Thanks,
Sep 25, 2008 at 12:01 AM
Hi Jon,

Could you attach a repro (xaml markup or code)?  I can take a look.