开发者

WPF - TabItem appears to be data binding content when clicked

So I have two tab items within a tab. I am data binding on both. If when i click the second tab item the memory goes through the roof. Looks like it is lazy loa开发者_开发技巧ding or something. So if i don't click it memory stays still, but soon as i click the second tab item it appears to start data binding.

Thanks for the help anybody!


The WPF TabControl unloads the tabs that are not currently visible and reloads them when you switch to them. So changing from Tab1 to Tab2 is unloading Tab1 and loading Tab2 (This can be verified with a Loaded event on an item in the tabs).

Are you doing anything memory-intensive within your tabs or within the Loaded events of any tabcontrols?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜