Closed georgiuk closed 3 years ago
We currently don't have a way to efficiently host a native child window in our windows.
Even if we did there would be the airspace problem. We can seamlessly embed our own content to WinForms and WPF because we can draw into WinForms or WPF controls. Unfortunately we can't implement a custom HwndSource which would allow us to make WPF draw it's content into Avalonia control.
Wouldn't this pretty much ruin the fact that Avalonia is cross-platform?
@dizaztor Integration with existing technologies is needed for step-by-step migration. It's hard to port the entire app at once, so it might be desired to port one part at a time.
I also have this issue. I would love to take a closer look at AvaloniaUI with paid support and all that but migrating my existing app comes with some challanges. For example, I'm dependent on some 3rd party ActiveX or WinForms control which I can't replace with anything else. A way to host something like that would be a requirement for my project. Is there something built-in, already available or on the horizon?
NativeControlHost
is available in 0.10.0. See https://github.com/AvaloniaUI/Avalonia/tree/1a39210febf92e9e87b3ebacca9b56d99e660913/samples/interop/NativeEmbedSample for example usage.
@georgiuk you said:
I know the opposite is possible.
Can you point me to a link on how to do this (how to host avalonia in wpf?)
Hi, Is it possible to host windows forms or WPF controls in avalonia? I know the opposite is possible. If not would you think would be difficult to implement? Kostas