Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I run an UWP app on foreground at startup?

Tags:

c#

windows

uwp

I'm trying to solve a problem related to run an UWP app on top at startup (with Winodws 10).

I already put the app in the autorun applications but it always runs in background (the application is opened and if I click on the icon in the application bar I can see it). Unfortunately, I would like that it runs automatically on top.

How can I solve it?

like image 203
alexmark Avatar asked Feb 19 '19 15:02

alexmark


People also ask

How do I distribute my UWP app?

If you are distributing your app via the Microsoft Store, Visual Studio can associate your package with the Store. To do this, right-click your project name in Solution Explorer and choose Publish->Associate App with the Store (before Visual Studio 2019 version 16.3, the Publish menu is named Store).

Is UWP deprecated?

Going forward, UWP will only receive “bug, reliability, and security fixes,” and not new features, Microsoft says, indicating that it is now deprecated.


1 Answers

@Xavier Xie We are also facing the same problem, what we are trying to build is a Windows 10 IoT machine that displays latest contents in fullscreen from a server automatically whenever the machine is started up / restart. Tried with StartupTask but it only brings up the App minimized / suspended at Windows startup.

The only way workaround for now is to drag a shortcut link of the installed UWP App into the startup folder. (type "shell:startup" in Explorer) Not as elegant and automatic but it works.

like image 141
Patrick Lin Avatar answered Oct 13 '22 12:10

Patrick Lin