Closed TomQv closed 6 years ago
Hey @TomQv, yes you can now do something like this:
class MyHandler: WindowsFormsHostHandler<GLControlNative, Control, Control.ICallback>, Control.IHandler
{
public MyHandler()
{
WinFormsControl = new GLControlNative(...);
}
}
It isn't anything special; it does the same as what you have there except it maps the mouse, keyboard, and focus events and methods to the winforms control itself.
Hope this helps! Curtis.
Closing as I believe this is answered. Let me know if you have further questions.
I see, that you have some support for System.Windows.Forms integration in Wpf now. How is this suppose to work?
I have a Winform-Control, which I need in Eto.Wpf. Currently I'm doing it like this:
But of course I must reference WindowsFormsIntegration in my native app.
Can this be replaced now with your new System.Windows.Forms integration?
Tom