How can I bind key gestures in Caliburn.Micro?

前端 未结 5 1299
一个人的身影
一个人的身影 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:23

    You can do it by deriving from System.Windows.Interactivity.TriggerBase. Here is an example.

提交回复
热议问题