How can I bind key gestures in Caliburn.Micro?

前端 未结 5 1297
一个人的身影
一个人的身影 2020-12-30 08:47

How can I get Caliburn.Micro to map a key gesture to an action method on my ViewModel?

For example, I want to implement a tabbed interface, and I want my ShellViewMo

5条回答
  •  春和景丽
    2020-12-30 09:29

    Caliburn.Micro's Actions mechanism is built on top of System.Windows.Interactivity. So, you can create a custom trigger based on TriggerBase to do whatever you want, including global keyboard gestures. Then, just plug the ActionMessage into your trigger and viola!

提交回复
热议问题