Category "avaloniaui"

SetForegroundWindow on macOS using C#

On Windows I can set a window to be in foreground using this code: [DllImport("User32.dll")] public static extern bool SetForegroundWindow(IntPtr hWnd); ... var

Avalonia UserControl checking if it is visible before before acting on a timer

I have a loading overlay (with the View inheriting from UserControl and the ViewModel from ViewModelBase) that I display over the current window by putting usin

C# GUI Design for Mac Retina Displays

I'm using Avalonia UI to create an application that is available for both Windows as well as macOS, and have come across the issue that, when using a macOS devi