WPF内容控制内存增加 [英] WPF content control memory increase
本文介绍了WPF内容控制内存增加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hello,
在我的WPF(使用MVVM设计)应用程序中,有几个用户控件和一个MainWindow,其&ContentControl.要在窗口之间导航,我只需更改 ContentControl的内容 到另一个用户控件,但一段时间后 i 内存 using .
In my WPF (use MVVM design) application there is several user controls and one MainWindow with ContentControl. To navigate between windows i just change the content of ContentControl to another user control, But after some time i observed that memory using increasing.
推荐答案
您是否要为每个内容更改"创建一个新对象?
Are you creating a new object for each "change of the content"?
这篇关于WPF内容控制内存增加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文