Questions tagged [win-universal-app]

Windows Universal apps target multiple types of devices via a single codebase. Please specify with other tags if you refer to Windows 8.1 or Windows 10.

You can build an app for Windows and Windows Phone/Mobile at the same time, and share code, user controls, styles, strings and other assets between them. This reduces the expense associated with building and maintaining an app for each type of device.

If you already have a desktop app, you can easily add support for a mobile app. Similarly, if you start by creating a mobile app, you can easily add support for a desktop app.

Please note that since the release of Windows 10, the universal apps for that platform are called Universal Windows Platform (UWP) apps. Therefore please use suitable tags additonally:

For some more help regarding:

Use this tag for any UWP questions - whether building Windows Store Apps, UWP APIs in Win32 applications.

5610 questions
36
votes
1 answer

Suspending event not raising using WinRT

I'm having a problem with suspending event on Windows Phone 8.1 using WinRT, it does not fire. I don't know why. This is my code: /// /// Initializes the singleton application object. This is the first line of authored code /// executed,…
33
votes
1 answer

UnhandledErrorDetected: Unspecified error COMException

Struggling with an error that freezes the app and only occurs on the tablet (never on my laptop). Seems to be related to quickly switching the hamburger menu. I got one stack trace that incriminated a 3rd party control, but 9 of 10 times all I get…
DeannaD
  • 1,469
  • 2
  • 16
  • 27
31
votes
2 answers

How to use Acrylic Accent in Windows 10 Creators Update?

I can't find any detailed document to use Acrylic Accent (CreateBackdropBrush). I found a post in StackOverflow which is somewhat useful but it doesn't help to get started. So please create a detailed answer to this post so that everyone can…
31
votes
3 answers

How to check internet connectivity type in Universal Windows Platform

I would like to check internet connectivity type in Windows Universal Application. Not Connected Connected via WLAN(WiFi) Connected via WWAN(Cellular Data) Connected to a metered network in order to provide an option for downloading large size…
Vineet Choudhary
  • 7,433
  • 4
  • 45
  • 72
31
votes
3 answers

UWP Windows 10 App memory increasing on navigation

I have a UWP Windows 10 App and noticed the memory usage in task manager is increasing over time. I stripped the App back and found the memory is increasing when the navigating pages. So I made a simple app with just a few pages to test and the…
tagy22
  • 1,353
  • 17
  • 26
31
votes
2 answers

How to execute Process commands (or similar) using a Universal Windows Platform (UWP) App?

I'm working on creating custom Cortana commands. The commands are registered and executed using a Universal Windows Platform Application. (GitHub) For instance, I've registered the following command Shut…
Charles Clayton
  • 17,005
  • 11
  • 87
  • 120
31
votes
1 answer

UWP Enable local network loopback

I wrote a UWP-App and after generating and installing the .appxbundle, every time I start the App I get a net_http_client_execution_error. The App is starting and running fine, when started in Visual Studio 2015. So there is no chance for me to get…
M4s0n
  • 613
  • 1
  • 7
  • 21
29
votes
13 answers

DEP0001 : Unexpected Error: -1988945906 while deploying Windows UWP app to phone

Exact error: Severity Code Description Project File Line Suppression State Error DEP0001 : Unexpected Error: -1988945906 TestApp What does it mean? It seems it isn't problem with application, it works OK on PC. Version of OS: 1511,…
Piotrek
  • 10,919
  • 18
  • 73
  • 136
29
votes
2 answers

using FontIcon Glyph from code (C#)

I try to add some of the base provided icon from FontIcon class for universal windows 10 apps (those that we can see mostly in appbar). when running this piece of code, it run without any problem, but in fact, it shows some border square, such as…
Sven Borden
  • 1,070
  • 1
  • 13
  • 29
28
votes
1 answer

Encoding.GetEncoding can't work in UWP app

I need to encode some text files for native characters. In my Windows 8.1 Store app, I could use Encoding.GetEncoding() method normally: Encoding.GetEncoding("windows-1254") But in UWP app, I got this exception: Additional information:…
user3977385
28
votes
2 answers

Device Unique id in Windows Phone 8.1

How to get the device unique id in Windows Phone 8.1? The old way of using DeviceExtendedProperties.GetValue("DeviceUniqueId") does not work for Windows Universal app.
MohanRajNK
  • 895
  • 2
  • 13
  • 26
27
votes
2 answers

Mocking framework in UWP Apps

Im trying to find a good mocking framework to Unittest my UWP App, bt it seems that all good Mocking infrastructures (MOQ, RhinoMocks etc) understandably rely on Dynamic Proxies which is not supported in UWP. It looks like MOQ knows of this…
Scott Henry
  • 381
  • 3
  • 5
27
votes
5 answers

UWP - Image Uri in Application Folder

I'm having a little issue here in showing images. So when I'm trying to load images from XAML, I can use a relative uri to the image source like this : But if I try to change the image source programatically…
Stephen Djohan
  • 307
  • 1
  • 3
  • 9
26
votes
13 answers

UWP Check If File Exists

I am currently working on a Windows 10 UWP App. The App needs to Check if a certain PDF File exists called "01-introduction", and if so open it. I already have the code for if the file does not exist. The Code Below is what i currently have: …
26
votes
2 answers

AdaptiveTrigger and DataTemplate

Will AdaptiveTrigger work in a DataTemplate? That's my code i'm using to customize my ShellNavigation, it is working fine except the visual states. They will not trigger anything.
Jens Marchewka
  • 1,372
  • 1
  • 13
  • 22