I have a Visual Studio project with two start-up applications: a UWP and a console app. In the UWP I launch the Main Page in full-screen mode with
ApplicationView.PreferredLaunchWindowingMode = ApplicationViewWindowingMode.FullScreen;
In the App.xaml.cs file. I then launch external applications in Program.cs by creating new processes and setting their filename to the .exe I want to launch. However, when I do this the UWP Main Page goes into full screen but I can't see the external applications. How to I make the external apps launch in front of the main page so that I can see them right away when I run the project?
How to I make the external apps launch in front of the main page so that I can see them right away when I run the project?
For this scenario, you could minimize UWP programmatically after external apps launched, the app will switch to front automatically.
IList<AppDiagnosticInfo> infos = await AppDiagnosticInfo.RequestInfoForAppAsync();
IList<AppResourceGroupInfo> resourceInfos = infos[0].GetResourceGroups();
await resourceInfos[0].StartSuspendAsync();
Please note you need make sure the app's mini version is Windows 10 update 1803 (build 17134).
Related
I have a WPF application which is converted to UWP using the desktop bridge, Now I need to call this app/exe from windows scheduler to do some stuff. Now my problem is getting access denied. If any app trying run from task scheduler getting this access denied error.
I have identified a workaround to achieve this. My actual requirement was 'I need to trigger an action in my Desktop bridged UWP app from windows scheduler' unfortunately windows scheduler has not read/write access to the uwp apps folder
The workaround was I have packaged a simple exe along with my UWP app package during first launch of the app the packaged exe will be copied to outside uwp sandbox, from the windows schedule I will execute this copied 'exe' say sample.exe and sample .exe will send a custom windows message to my UWP app.
The work around provided by thunderbird would work only with the Desktop Bridged UWP app. Native UWP app cannot do this way.
Is there any solution how to open exe file (as for me as example it's Flash app and Prezi.exe) in view in the UWP app?
Something like this https://www.youtube.com/watch?v=N6GWgxEvibE
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?
#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.
I am converting my app from a WP8 project to a windows project. If you run the command
cordova platform add windows
Cordova will create a solution with 4 projects, one for Windows 8.1, 1 for Windows 8, one for Windows Phone and the shared project. From what i can see, these are javascript projects, but i need to run some c# code to start a background service when the app starts. In a WP8 project you can add this code to the Mainpage.xml.cs file.
Is there no c# code that runs in these types of projects, or can you attach any code to run upon startup? How do people start background tasks in these apps else?
In Apache Cordova main page, there is a bunch of links to download Cordova Component for each platform. Choose the one for WP8 GitHub repository, and you will be redirected to
https://github.com/apache/cordova-wp8
Download the repository as a Zip from the right hand side of the page, after unzipping the file, you will happily find that the Cordova library and the project template are written in C#.
I have a simple hello world application that target platform is set to "Windows Mobile 6 Classic Emulator", develop with Visual Studio 2008 with .NET frame 3.5. Compile and run test, everything working. Then deployed to Motorola MC75. When run, the application run fine but I cannot access the start menu, start button or the windows taskbar. I go to App Center to setup the application options not to hide start menu, still not see it. How do write an application that has taskbar, start button, and start menu display.
I actually have MC75 siting here next to me. You should be able to see the windows logo on top Left of your Application. Clicking that will minimize your app showing you the "desktop".