Replies: 1 comment 3 replies
-
|
I don't think you can do this easily. Avalonia expects to draw to a canvas. So you can't just get a pointer to a single control like you can with winforms, you need to draw the entire canvas. I am not sure sure what the best way to do this would be, but you could implement your own custom backend. EG see something like the Godot backend. https://github.com/MrJul/Estragonia Alternatively I think you can embed an native application window inside a Avalonia application window. But I can't say I have tried it. Someone else may better ideas though. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to use avalonia in a mixed managed native/managed program.
The program is a native win32 program and hosts the dotnet engine.
Given a UserControl and a parent HWND I would like to create the user control and make it a child window of HWND.
In the past I successfully did this with WinForms and Wpf.
Can anyone please give some pointers ? or example I can look at ?
Beta Was this translation helpful? Give feedback.
All reactions