积极答复者
能不能把容器写成独立的XAML并加载到主窗口

问题
答案
全部回复
-
你好,
是不是可以考虑尝试使用TabContorl 来实现呢?大致思想是这样的: 每个tabitem 加载一种场景,然后在加载的时候只加载选定的tabitem, 即选定的场景。这种加载方式称为Lazy Loading。
请参考一下链接:
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/be91e62b-d1ba-4448-a495-0720f35096cc
http://stackoverflow.com/questions/4276113/load-tabitem-content-when-it-is-selected-not-before-in-mvvm
http://stackoverflow.com/questions/4756657/lazy-loading-in-tabcontrols-mvvm
Lisa Zhu [MSFT]
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.