阅读背景:

WPF MVVM中将frameElement事件绑定到viewmodel处理程序的“正确”方法是什么?

来源:互联网 

So here is my dilemma, I want to handle view events on my view model, trouble is, in order to add an event handler, my view has to have a code behind file and therefore a class attribute has to be set. I'm 99% sure this is a bad idea, and to be perfectly honest, i'm not even sure how to do it (other than the obvious x:Class="" part) What is the proper way to do this in an MVVM application?So here is my dilemma, I want to handle view ev




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: