question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Window.Activate does not activate and bring window to foreground in WinUI3 if window is in background but not minimized

See original GitHub issue

Describe the bug

If Activate is called on a Window which is in the background of other windows, that window is not activated and brought to the foreground. If the window is minimized it works correctly.

Steps to reproduce the bug

Call Activate on a Window when it is in the backround of other windows.

Expected behavior

No response

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.1.4

Windows app type

  • UWP
  • Win32

Device form factor

Desktop

Windows version

Windows 10 (21H2): Build 19044

Additional context

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:4
  • Comments:21 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
pratikonecommented, Jan 20, 2023

My apologies. I was not launching the second instance. Now I am able to get the repro done. We are investigating this and I will keep the issue open until you validate the fix.

2reactions
Balkothcommented, Jul 13, 2023

This is still an issue in Windows App SDK 1.3.2 (1.3.230602002)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Window.Activate Method (Windows.UI.Xaml) - UWP
Attempts to activate the application window by bringing it to the foreground and setting the input focus to it.
Read more >
Bring a window to the front in WPF
The window should not activate its parent when it is shown;; The window should be compatible with Citrix. MVVM Solution. This code is...
Read more >
Prevent apps from putting themselves in the foreground
This is done in Control Panel > Ease of Access Center > Make the mouse easier to use, check "Activate a window by...
Read more >
How to get a Libre Office document to open as the active ...
The problem is that the newly-opened LO document/spreadsheet window isn't in the foreground as the active window, but is instead hidden behind the...
Read more >
Setting the background of the main window with a theme
I'm trying to use the Expression Dark in a WPF application and can not find a way to have the window background automatically...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found