开发者

DelegateCommand vs RoutedCommand and gestures - WPF

开发者 https://www.devze.com 2022-12-20 13:03 出处:网络
is there anyway for DelegateCommand\'s to support gestures when building a composite WPF app?I\'m trying to create a command used by a MenuItem and also a Button, which can be accessed through a keybo

is there anyway for DelegateCommand's to support gestures when building a composite WPF app? I'm trying to create a command used by a MenuItem and also a Button, which can be accessed through a keyboard shortcut, but which sits inside a class in a separate assembly.

I 开发者_Python百科can use a RoutedCommand, but I want to minimise any code-behind.


Use InputBindingCollection to map gestures with ICommand.

0

精彩评论

暂无评论...
验证码 换一张
取 消