c# - Standard keyboard shortcuts in WPF controls -
i'm interested in list of available shortcuts of wpf controls. interested in standard shortcuts wpf treeview control (e.g., expand/collapse all, select , on) can't seem find location lists them. knows of specific page listing available shortcuts wpf controls? know shortcuts supported naively,e.g., ctrl+a select rows in given listview control.
i define own shortcuts , implement behaviour, feel not practice define shortcuts supported .net framework , hence need know such supported shortcuts.
in other situations typically use same shortcuts available in visual studio wpf application hopping here more extensive list of out of box supported shortcuts in wpf controls.
as far know, there no master list of supprted shortcuts, , right in general inherit shortcuts basic shortcuts in windows. have searched on own before , have never been able locate list. others have seen asking on internet have never had luck.
so unfortunate answer is: no, there no list.
edit: ok after digging, best can give list of pre-defined commands can apply controls built wpf. these come in 5 categories:
- application commands
- navigation commands
- component commands
- media commands
- editing commands
their documentation can found on msdn here (an example). clicking on 1 of commands take individual page list default shortcut this "key gesture" property.
you can assign these default commands controls so
<button command="applicationcommands.cut" commandtarget="{binding elementname=txteditor}" width="60">_cut</button> <button command="applicationcommands.paste" commandtarget="{binding elementname=txteditor}" width="60" margin="3,0">_paste</button> this seemingly pretty basic tutorial on binding these commands buttons , not (where code from). doesnt tell commands there default, should able @ least deduce keyboard shortcuts of these commands, whatever thats worth.
Comments
Post a Comment