摘要: 在MVVM模式中,我们将Button的方法写到ViewModel中,然后绑定到前端界面。通常的做法是写一个类,继承ICommand接口,然而如果按钮比较多的话,就需要写很多的类,对于后期维护造成很大的不变,微软提供了一个DelegateCommand类,可以简化开发。使用方法如下:首先生命Vie... 阅读全文
posted @ 2014-06-13 18:48 雲霏霏 阅读(8139) 评论(0) 推荐(0) 编辑