Hosting WPF UserControls in Windows Forms

Jul 3 2008 5:19 PM

Hello All,

   There are many tutorials on how to get a WPF UserControl into a winform using an elementhost.  The problem I am running into is figuring out how to dynamically control the WPF UserControl from the winform.  I would like to be able to click a button on my winform and execute some of the code behind for the UserControl.

   Could someone give me an example of how to do this, or direct me to a tutorial on the matter?

Thanks,

Joshua Foulk


Answers (1)