These are chat archives for AvaloniaUI/Avalonia
var mouseDevice = (VisualRoot as IInputRoot)?.MouseDevice;
we might want a more elegant way of expressing that though
Extension methods are widely used for such purposes
how would they know what the input root is?
how did MouseDevice.Instance know before?
different TopLevel controls in the same app can be backed by completely different internal implementation (e. g. control root embedded to WPF/GTK/Cocoa, remote visual, etc) with completely different needs and limitations
though i think tbh it'd be pretty unlikely that you'd be mixing those in the same app
A widget integrated in WPF wants to show a Popup