How do I add a UIElement to a Windows Forms application?

I have a WPF custom control that I would like to add to a Windows Forms Application. So I added a link to the WPF assembly, created an ElementHost and set the Child property in code.

Is there a way to do this using drag and drop without writing any code? I tried the ElementHost popup but it doesn't display my component. As far as I can see, it only lists the WPF components that are in the project (as opposed to an external assembly).

+2


source to share


1 answer


When you drop the node element to the window form, it will display drop down to select the child, then you can add custom WPF controls without code.



+3


source







All Articles