Host Avalonia control inside NSView on MacOS #15719
pauldumais
started this conversation in
General
Replies: 1 comment 1 reply
-
I am currently refactoring the MacOS windowing implementation. It might be possible to implement a TopLevel that just holds a NSView. That could be embedded into some external NSView. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
We would like to convert our large dotnet apps (winforms on Windows and Xamarin everwhere else) to Avalonia. We have successfully started converting our Windows app built with WinForms by using the WinFormsAvaloniaControlHost control inside our WinForms views, this works great so far. This will allow us to over time incrementally convert the app from WinForms to Avalonia.
We also have a MacOS app built with Xamarin and Cocoa. I'm first trying to embed an Avalonia view inside a Xamarin C# NSView similar to the WinFormsAvaloniaControlHost method, is this possible? I see in the native code folder an AvnView maybe we can expose this somehow to the C# layer?
I see a mention on this thread about accessing the NSWindow and @maxkatz6 mentioning that it might be possible to embed inside an NSView, we are willing to make the changes if needed to the native side to support this:
#15555 (comment)
Thanks,
Paul
Beta Was this translation helpful? Give feedback.
All reactions