AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
26.05k stars 2.25k forks source link

Host Avalonia controls in WPF #17410

Closed Yslelf closed 3 weeks ago

Yslelf commented 3 weeks ago

Is your feature request related to a problem? Please describe.

Host Avalonia controls in WPF

Describe the solution you'd like

Host Avalonia controls in WPF

Describe alternatives you've considered

No response

Additional context

No response

maxkatz6 commented 3 weeks ago

It's already possible in two ways.

  1. Windows specific, using HwndHost. Sample is here https://github.com/maxkatz6/AvaloniaHwndHostSample/tree/main This issue is a duplicate of https://github.com/AvaloniaUI/Avalonia/issues/11611

  2. Using XPF Hybrid. Where WPF runs crossplatform, and can embed Avalonia content directly, without HwndHost.