I have a hybrid WPF-WinForms application. In an effort to turn it to a pure WPF application I recently made the following change. There was a WinForms TabControl, which had element hosts in each one of its tabs, and those element hosts contained WPF user
controls. I took out the WinForms tab control, placed just one single element host there, placed a WPF TabControl in that host, and placed WPF user controls directly in the tabs, since they don't require hosts any more. It seemed to work fine at first, untill
I noticed quite a few problems and found out that the WPF tab control raises Loaded and Unloaded events of the user controls every time user switches tabs. I don't want the controls to be unloaded! Is there anything I can do about it? I use VS 2008 and
Framework 3.5. Does it work any better in Framework 4.0?
View Complete Post