WPF control in CTP

Dec 8, 2011 at 4:32 PM

Hello All,

Currently I have a WinForm user control in the CTP, which in turn
hosts a WPF user control via an element host. Things are working well
except for performance issues.

My question is - is it possible to load the WPF control directly
without using a winform wrapper?

Thanks in advance and my apologies if my post is off-topic or
unrelated.

regds,
raghu

Coordinator
Dec 9, 2011 at 8:59 PM

Hi Raghu, 

I don't know of a way to host WPF in the CustomTaskPane directly. 

Are you using the .NET 4 runtime (with RuntimeVersion="v4.0" in 
the .dna file)? 
I know some work was done for .NET 4 to improve the WPF-control-in- 
Winforms-host scenario. 

-Govert 

Dec 13, 2011 at 12:35 PM

Hi Govert,

We are using 3.5 SP1. I've run a few benchmark tests with 4.0 - but there hasn't been any striking improvements.
What I am trying to do now is create an un-managed activex control which then loads up a WPF control or a Winform control  as required. Once I get that working - i'll post up a few benchmark numbers.

Unfortunately - as of now - all I have is a hunch (plus the approximately 20 MB worth of memory consumed by the element host that I see in Windbg/Sos) that WPF rendering inside a Winform is expensive due to whatever double buffering is in effect. 

regds,
raghu