Basically I have a WPF elementHost contained in my C# Windows Form. The element host needs to retrieve a variable from the Windows form, but I have found no simple way to communicate between the two of them. Is there any method in particular I should be looking out for?
I've tried the standard
Textbox.Text = form2.Variable;
But this doesn't seem to work within the WPF elementhost.
Sorry for the vagueness! I just don't know where to start!