WPF app Deployed using ClickOnce doesn't pop-up in front when run

Enkhbold Munkhbold 136 Reputation points
2020-08-14T03:48:28.797+00:00

I have a WPF app that is deployed using ClickOnce.
The program works as intended but on some(on most of the enterprise computers used) computers it won't become "Active" as in, it seems to start and creates its form but doesn't pop-up on the taskbar until clicked on after I minimize my active windows Chrome, Excel, File Explorer, etc. Also doesn't seem to show up on task manager until the click.

When I run it from my Visual Studio (in both DEBUG and Release mode) it works fine and no matter how many windows I open before it starts it comes to the foreground and works fine. Also works fine on some of our developer's computers.
But when other people run it, it doesn't come to the front no matter how long they wait.
I even tried putting this.Activate(); on the code-behind of the main window that is in the "View" folder.
I'm using WPF with MVVM architecture and the handler code for this main window is in my "ViewModel" folder.
I don't know why it doesn't work, but it might be something with the DevExpress DLL's us developers use and because the test users don't have it.

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
{count} votes