Questions tagged [windows-10-universal]

The Universal Windows Platform is a common platform for all devices running Windows 10. The UWP is separated into device families like PC, Mobile, IoT and many more. The UWP allows you to use common code for all device families.

Universal Windows Platform

Windows 10 introduces the Universal Windows Platform (), which further evolves the Windows Runtime model and brings it into the Windows 10 unified core.
As part of the core, the UWP now provides a common app platform available on every device that runs Windows 10 (). With this evolution, apps that target the UWP can call not only the WinRT APIs that are common to all devices, but also APIs (including Win32 and .NET APIs) that are specific to the device family the app is running on.

The UWP provides a guaranteed core API layer across devices. This means you can create a single app package that can be installed onto a wide range of devices. And, with that single app package, the Windows Store provides a unified distribution channel to reach all the device types your app can run on.

Resources

2393 questions
16
votes
10 answers

Child node "2" exited prematurely

I recently retargeted my Windows 8.1 app to Windows 10. I'm getting this error when building the UI projects, "MSBUILD : error MSB4166: Child node "2" exited prematurely. Shutting down. Diagnostic information may be found in files in the temporary…
Darthg8r
  • 12,377
  • 15
  • 63
  • 100
16
votes
1 answer

How do I declare a System data type in UWP/RT XAML?

I'm trying to access the system namespace for StaticResource variables in XAML on UWP. Here's (mostly) what I'm using:
Noppadet
  • 804
  • 9
  • 19
15
votes
2 answers

How to print in UWP app?

I am trying to print out something from my UWP app. Basically I've used a WebViewBrush to draw some data on to some FrameworkElement's (Windows.UI.Xaml.Shapes.Rectangle) - and I want to print one of these Rectangles on each page (one rectangle per…
b85411
  • 9,420
  • 15
  • 65
  • 119
14
votes
7 answers

How can I detect Windows 10 light/dark mode?

I'm using Windows.UI.ViewManagement.UISettings to get system accent color but it seems this class does not have any method or property for light/dark mode. I failed to find a document for this feature, how can I detect this? PS: I'm making a JS app…
Kagami Sascha Rosylight
  • 1,412
  • 1
  • 14
  • 31
14
votes
5 answers

UWP Deployment Error after deploying to store - Windows 10

Since deploying my UWP app for windows 10 in the store (beta & private), I can no longer deploy it to my phone (ARM), Tablet Simulator (x86) and my local machine (Surface Pro 3) for testing. I've rebooted both my phone and my SP3 but I'm still…
Thierry
  • 6,142
  • 13
  • 66
  • 117
13
votes
5 answers

Communication between UWP and Non UWP app

Is it possible to have communication between uwp and non uwp apps. My non-uwp is a background task which provides a service. I want to call that non-uwp service in uwp app. How to make that call? Is AppServiceConnection class available in non-uwp…
13
votes
2 answers

How to resize Webview height based on HTML content in Windows 10 UWP?

I am currently working on Windows 10 UWP App and facing an issue with WebView that when I have less HTML content, I am getting more height in javascript. My Code is as follows WebView webView = new WebView() { IsHitTestVisible = true }; …
Kinjan Bhavsar
  • 1,439
  • 28
  • 58
13
votes
1 answer

Difference between Command (ICommand) and Click event

When should I use the Command and when to use the Click event? F.e. if I have a Button in my UWP app what should I use?
Marian Dolinský
  • 3,312
  • 3
  • 15
  • 29
13
votes
1 answer

How to automatically run a third party Windows 10 Store App on Windows-Start-Up after log in

What I want to achieve is: To run a third party Windows 10 Store App, after a user logged in into his Windows 10. I've discovered already how to start “Bing News” Store app at start up after user logged in 3 steps. Thanks to instantfundas. Shortly…
klingu
  • 559
  • 1
  • 7
  • 19
13
votes
3 answers

Windows 10 universal app - Run in fullscreen mode by default

I have application with target windows 8.1 and when I run this application on Windows 10, it is run in small window by default. Because it is primary tablet application I need it to run in full-screen mode by default. Is it possible to set it…
12
votes
2 answers

UWP: how to start an exe file that is located in specific directory?

I am trying to start an exe that is located in C:/Program Files (x86)/App from UWP app. How can I do this. I can start exe file by using Windows Desktop extension for UWP, add Hide Copy Code
neo
  • 618
  • 1
  • 10
  • 29
12
votes
3 answers

UWP equivalent function to FindAncestor in uwp

I have a list of orders and when the order status is Cancelled, I want to blink the text. So far, my code works. However, sometimes it will throws exception: WinRT information: Cannot resolve TargetName lblOrderStatus For some reason…
Sam
  • 1,826
  • 26
  • 58
12
votes
3 answers

How to create informative toast notification in UWP App

In my app, I want to inform user when particular action had performed, like record updated successfully or new record added, but there's not inbuilt control to that can display such information. Is there anything similar to Android Toast.makeText…
Zea Shah
  • 372
  • 1
  • 5
  • 14
12
votes
3 answers

App Certification fails because of PreLaunch Test

When I run the App Certification on my Template 10 based app, I get the following error: Error Found: The app prelaunch validation detected the following errors:◦The app failed prelaunch test -…
Eric Grover
  • 421
  • 3
  • 9
11
votes
1 answer

Loading Html file in WebView in xaml in UWP from app data local folder

I have a requirement where I need to load an html file from app data folder in xaml WebView in UWP. Html file is also referencing different Js files in another folder ("99/js/"). Any one with UWP knowledge guide me. Thanks in advance I am using…
arun G
  • 224
  • 1
  • 4
  • 12