We have WPF app and sometimes we display windows panel with windows controls. And one of those controls can be again a WPF control, which is hosted in element host.
This windows Panel on an average has 2-3 wpf controls. Everytime panel is displayed the initialization of first element host is taking around 250 ms and subsequent element hosts very less around 10 ms. We are disposing panel once it is closed. Per
this article if we create an empty element host and keep it alive/visible till the life of app, any subsequent creation of elementhosts takes very little time, which is true and i tested with a sample project. But when i created an empty element host and
added to our Main wpf window, it does not help. Which means, when a wndow panel displayed element host inside it still takes around 250 ms. Any ideas whats going on here?
View Complete Post