You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I often need to implement useful hotkey's on DataGrid, as I use this control so much it's a bit of an annoyance having to register event and do same code for every DataGrid.
The shortcuts I use are the common for the grid controls:
Ctrl + A (Select all rows)
SHIFT + Esc (Unselect all rows)
Shift + * (Invert selection)
Shift + Delete (Delete selected rows)
Shift + Ctrl + Delete (Delete all rows)
Is avalonia interested in implementing any of this? At least the selection hotkeys? Like: SelectAllHotkey, ClearSelectionHotkey, InvertSelectionHotkey? If so, I can try an PR.
If deletion is also desired would be also required an DeleteHotkeyCommand.
PS: I tried to extend DataGrid to implement this stuff, like: public class MyDataGrid : DataGrid however binding rows in xaml does not compile and trigger error...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I often need to implement useful hotkey's on DataGrid, as I use this control so much it's a bit of an annoyance having to register event and do same code for every DataGrid.
The shortcuts I use are the common for the grid controls:
Is avalonia interested in implementing any of this? At least the selection hotkeys? Like:
SelectAllHotkey
,ClearSelectionHotkey
,InvertSelectionHotkey
? If so, I can try an PR.If deletion is also desired would be also required an
DeleteHotkeyCommand
.PS: I tried to extend DataGrid to implement this stuff, like:
public class MyDataGrid : DataGrid
however binding rows in xaml does not compile and trigger error...Beta Was this translation helpful? Give feedback.
All reactions