windows-forms-host

ContextMenu on WindowsFormsHost control

So, I have a WindowsFormsHost control in my WPF app (hosting a Dundas Chart) and I want to put a ContextMenu on it. I can successfully attach a ContextMenu to any normal WPF control, but it's not working for the WindowsFormsHost. I suspect this is becuase it's "special" in some way and the appropriate mouse messages aren't reaching the ...

Instantiate a Windows Forms control in WPF without default constructor

I am trying to host a custom Windows Forms control in WPF. My custom control does not have a public constructor, and it has a static Create() method which looks something like this: public abstract class MyCustomControl : UserControl { internal MyCustomControl(...) { } public static MyCustomControl Create(SomeEnum kind) { sw...