MAUIverse MAUIverse

How to Get the Active Window in .NET MAUI

.NET MAUI supports multiple windows, but doesn’t provide a built-in way to ask “which one is active?”—a common need for popups and UI state management.

Vladislav Antonyuk demonstrates a clean approach: subclass Window to track activation/deactivation, then add extension methods to reliably find and use the current active window.

View Source →

← Back to Community Feed

}