I have a hybrid application that I need to update a WPF control whenever an event is fired in the windows form.
I have a button click that will change the property of a string value, and depending on the string value, the WPF control should either draw a line or a rectangle. So when the user clicks either line or rectangle, how I transmit that to the WPF control?
Any help would be greatly appreciated!
Suppose You have A WPF UserControl named WPFUC. And and an ElementHost named elementHost1. And elementHost contains WPFUC. And the WPFUC has a public property named String Parameter. Then:
Hope this helps.