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
25.72k stars 2.22k forks source link

Host Avalonia controls in WPF #17410

Closed Yslelf closed 4 hours ago

Yslelf commented 5 hours 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 4 hours 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.