You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We are progressively integrating Avalonia UI elements to our WinForms application and, because of this, we setup Avalonia without a Lifetime, which prevents attaching the DevTools (AttachDevTools) for the whole application. It still works if we attach it on a per-Window basis, but I expect us to end up with a lot of UserControl embedded directly in Windows Forms (and View/Window for macOS, and for GTK in Linux).
@xfortin-devolutions inside of the Avalonia control code, "avaloniaView" code in your case, you can call TopLevel.GetTopLevel(control). Note, it should be done when control has attached to the visual tree.
Is your feature request related to a problem? Please describe.
We are progressively integrating Avalonia UI elements to our WinForms application and, because of this, we setup Avalonia without a Lifetime, which prevents attaching the DevTools (AttachDevTools) for the whole application. It still works if we attach it on a per-Window basis, but I expect us to end up with a lot of UserControl embedded directly in Windows Forms (and View/Window for macOS, and for GTK in Linux).
Describe the solution you'd like
It would be nice to be able to open the DevTools for Avalonia UserControls embedded to WinForms with WinFormsAvaloniaControlHost.
The same would then apply to EmbeddableControlRoot in Mac and whatever it is for Linux (XEmbedPlug?)
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: