全视图 [英] StateFull View
本文介绍了全视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用cinch创建一个ViewModel.我有一个UserControl(视图),用作DataTemplate来重新呈现我的viewModel.我创建了viewModel的集合,但是我只获得了UserControl的一个实例.问题在于用户控件为StateFull.有没有更好的方法来创建视图而不强制我的viewModel跟踪视图状态.换句话说,为每个ViewModel创建一个视图.
谢谢.
Hi,
I am using cinch to create a ViewModel. I have a UserControl (view)that I use as DataTemplate to represend my viewModel. I create a collection of the viewModel,yet I only get one instance of my UserControl. The problem is that the usercontrol is StateFull. is there a better way to create the view without forcing my viewModel to keep track of the view state. In other words create a view for every ViewModel.
Thanks.
推荐答案
我认为,如果您在本文结尾处的论坛中发布问题,您可能会得到更快的答复.这样,作者将收到您的问题通知.
I think you may get a quicker response if you post your question in the forum at the end of the article. In that way the author will be notified of your question.
这篇关于全视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文