ElementHost won’t render WPF User Control


Check your project properties and make sure both your wpf usercontrol project and windows forms project compiled on same CPU i.e x86 or x64 or Any CPU. 

I had this problem in my project where my UC were in wpf and I needed to host it into the windows forms application. 

I checked and properties were diff. and I made them as x86 and all good.

Happy Coding 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s