I am trying to use the ProvideCommandsForKey with a GridView to implement an "insert new row logic" when hitting tab on the last (visible) column of the last row.
I am implementing my logic like this
The problem is : When I hit shift-Tab (to tab backwards) it fires the Tab key command, The result is that I insert a new row while it wasn't wanted...
I am implementing my logic like this
public
override
IEnumerable<ICommand> ProvideCommandsForKey(Key key)
{
if
(key == Key.Tab)
{
...(Insert new row if necessary)
}
}
The problem is : When I hit shift-Tab (to tab backwards) it fires the Tab key command, The result is that I insert a new row while it wasn't wanted...