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.

5580 questions
355
votes
5 answers

How does Windows 8 Runtime (WinRT / Windows Store apps / Windows 10 Universal App) compare to Silverlight and WPF?

I am trying to get my head round the new Windows 8 Runtime that is used to create Metro style apps. I know you can use it with XAML and it is based on .NET so C# and VB.NET can be used to write the apps, but then it seems to have something to do…
86
votes
2 answers
62
votes
6 answers

Universal Apps MessageBox: "The name 'MessageBox' does not exist in the current context"

I want to use MessageBox for showing download errors in my WP8.1 app. I added: using System.Windows; but when I type: MessageBox.Show(""); I get error: "The name 'MessageBox' does not exist in the current context" In Object Browser I found that…
sprrw
  • 623
  • 1
  • 5
  • 4
61
votes
2 answers

Difference between Binding and x:Bind

What to use in UWP, Binding or x:Bind and what is the difference between them? Because I see a lot of posts where people use Binding and I only Bind with x:Bind in UWP. At the MSDN Homepage it only says that "the binding objects created by {x:Bind}…
FoldFence
  • 2,467
  • 3
  • 27
  • 51
59
votes
4 answers

XAML gradient issue in UWP for some devices

I'm using Page as landing screen in my app. XAML looks like this:
khamitimur
  • 889
  • 11
  • 21
55
votes
1 answer

Universal Windows project - HttpClient exception

I'm trying to implement REST client in Universal Windows project (in Windows 10 universal app) using HttpClient, but the following line: var response = _client.GetAsync(address).Result; throws an AggregateException with the following…
Mrk
  • 703
  • 1
  • 6
  • 9
48
votes
3 answers

Hide Status bar in Windows Phone 8.1 Universal Apps

How to hide the Status bar in Windows Phone 8.1 (C#, XAML)? In Windows Phone 8 it was done by setting shell:SystemTray.IsVisible="False" at any page. But its not available in Windows Phone 8.1
Kalyan
  • 1,367
  • 2
  • 12
  • 25
47
votes
3 answers

Strange subfolder "DTAR_08E86330_4835_4B5C_9E5A_61F37AE1A077_DTAR" created in VS2015's UWP solution folder

I've seen this empty sub folder DTAR_08E86330_4835_4B5C_9E5A_61F37AE1A077_DTAR created few times in different solutions (all UWP) and even in default "Blank App (Universal Windows)" project, the problem is - I can't reproduce it intentionally -…
Sevenate
  • 5,657
  • 2
  • 42
  • 68
47
votes
2 answers

Run Windows 10 Universal Apps on Windows 8.1

Is it possible to run a windows 10 universal app on windows 8.1? I searched a lot, but I didn't find a clear answer on MSDN etc. Thanks.
MPhil
  • 861
  • 1
  • 12
  • 23
46
votes
7 answers

WinRT/UWP Frame and Page caching: How to create new page instance on Navigate() and keep the page instance on GoBack()

I'm trying to create an UWP (Universal Windows App) application with C#. My problem is the Frame control: If I use it without NavigationCacheMode = Required, every time the user goes back, the page is not kept in memory and will be recreated. If I…
Rico Suter
  • 10,556
  • 3
  • 57
  • 89
44
votes
1 answer

UWP limitations in desktop apps

I know that the new UWP app model has some limitations when comparing to "traditional" Win32 apps. Let's take Visual Studio Code as an example of a desktop app. What features of Visual Studio Code were missing or had to be different from user…
Liero
  • 19,054
  • 16
  • 100
  • 195
42
votes
1 answer

Adding settings class to a UWP app

I'm developing a Universal Windows Platform app but there is no Settings template in Visual Studio. How can I implement an easy, strongly typed and observable class that stores my settings in LocalSettings or RoamingSettings?
39
votes
18 answers

Could not load file or assembly 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies

I have a WinJS project that is previously built on Windows 8.1 using VS 2013. Recently I upgraded this project to Universal Windows 10 by creating a blank Javascript Universal windows 10 project and then added all my files from old project. I have…
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,…
35
votes
3 answers

Setting window size on desktop for a Windows 10 UWP app

I've just started learning UWP app development on Windows 10 Pro using Visual Studio 2015 Community Edition. I tried to modify the C# version of the official "Hello, World!" sample by setting the Width and Height attributes of the Page tag in…
kol
  • 24,444
  • 11
  • 70
  • 104
1
2 3
99 100