Binding a WPF ShortCut Key to a Command in the ViewModel

后端 未结 5 2210
我寻月下人不归
我寻月下人不归 2020-12-01 07:17

I have a WPF app that is using the MVVM pattern. Hooking up buttons to the VM is pretty straight forward since they implement the ICommand. I have a context menu that works

5条回答
  •  时光取名叫无心
    2020-12-01 07:55

    An alternative approach for binding a WPF Shortcut Key to a Command property of the ViewModel is shown in the ShortcutKey sample of the WPF Application Framework (WAF) project.

提交回复
热议问题