Avalonia: Host WinForms or WPF controls

Created on 18 Mar 2019  路  3Comments  路  Source: AvaloniaUI/Avalonia

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

question

Most helpful comment

@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.

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SeleDreams picture SeleDreams  路  4Comments

kekekeks picture kekekeks  路  4Comments

danwalmsley picture danwalmsley  路  4Comments

stdcall picture stdcall  路  4Comments

JonathaN7Shepard picture JonathaN7Shepard  路  4Comments