本文介绍了DelegateCommand或RelayCommand的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在WPF应用程序中实现M-V-VM模式.就设计ViewModel类而言,我想知道何时使用 DelegateCommand 以及何时使用 RelayCommand 通过Command公开内联操作.

还是100%可互换?有没有哪个场景比其他场景更受青睐?

谢谢

Hi,

I m implementing M-V-VM pattern in my WPF application. As far as designing ViewModel class is concerned I wanted to know when to use DelegateCommand and when to use RelayCommand to expose inline operations through Command.

or are they 100% interchangable? Is there any scenatrio where one is preferred over other?

Thanks

推荐答案



这篇关于DelegateCommand或RelayCommand的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-21 16:53