I want to check if the current application is in the foreground/focused.
The application is a windows-10 UWP application.
What i already got is, to check if the current application is minimized. For that i use the VisibilityChanged
event of Window.Current
.
But i don´t find a solution, to detect if the application is in foreground or not.
I can't be 100% sure but it seems that Windows.UI.Xaml.Window.Activated
event should suit your needs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With