wpf - How does one implement application keyboard shortcuts in Caliburn.Micro -
in larger applications, there can multiple dozens of keyboard shortcuts. users tend expect able remap these, similar options/environment/keyboard section in visual studio 2013. creating form not challenge, nor individual key bindings.
what want know how leverage caliburn.micro set these application, window, , control. if caliburn.micro doesn't provide direct mechanism, can nuget, implement, or learn , remain compatible caliburn.micro?
thanks david
not sure if you're looking caliburn.micro have sample create key bindings in wpf, it's available on github.
the important parts see in bootstrapper adds custom code new sort trigger , in shellview.xaml using event.
this should enough create key bindings appropriate scope mentioned.
what you're looking more complicated (especially around remapping) sample should on way.
update: @ creating dictionary mapping "command name" key combination. rather modifying parser create key trigger have custom trigger takes command name input.
that way modify dictionary user settings not have modify xaml. like
<window cm:message.attach="[key newproject] = [newproject]" />
where in custom key trigger maps "new project" "ctrl + n".
Comments
Post a Comment