1
Answer

Hosting WPF UserControls in Windows Forms

Ask a question
Joshua Foulk

Joshua Foulk

16y
11.6k
1

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)