阅读背景:

WPF:在分离时禁用绑定更新

来源:互联网 

Here is the situation: I have an editor app, that edits some hierarchical data. The data itself is held in ViewModel class, and View class is responsible to reflect changes in ViewModel. The main part of the View is ContentControl. When data changes in ViewModel, a hierarchical structure of controls is (re)generated and top-level control becomes the Content of the ContentControl. Of course, those hierarchical controls have bindings. Now it's time to close the editor. ViewModel reacts to command and clears the data. PropertyChanged is raised and the View is ready to react: it attempts to doHere is the situation: I have an editor app, th




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

分享到: