Questions tagged [windows-runtime]

Windows Runtime (WinRT) is a Microsoft platform architecture that allows applications to run in a sandboxed environment exposing a 'Windows Modern Style' UI/UX. Not to be confused with Windows RT, the edition of Windows 8 for ARM devices; see windows-rt.

Windows Runtime (WinRT) is a Microsoft platform architecture that allows applications to run in a sandboxed environment exposing a Windows Modern Style UI/UX (previously known by it's codename 'Metro', see )

WinRT is the set of APIs, specifications and architecture that enable and create a sandbox to allow and simplify access to the operating system and the underlying hardware. Applications designed for WinRT run in the sandbox.

WinRT architecture define a set of language binding interfaces called projections, Microsoft delivered the first version of WinRT with projections for following languages:

  • C#/XAML
  • VB/XAML
  • HTML/JavaScript
  • C++/CX

But in practice anyone who follows WinRT exposed interface restrictions and rules can create a projection to support any set of languages.

Useful links:

Windows Runtime

WinRT demystified

Anything about WinRT

Windows Runtime Library

NB Not to be confused with Windows RT, the edition of Windows 8 for ARM devices; see .

NB The Windows Runtime as a term is not used much anymore in relation to Windows 10 and the evolved platform has instead been called Universal Windows Platform (UWP). See . WinRT has been used in relation to the platform in Windows 8 and 8.1.

8697 questions
54
votes
8 answers

openjdk 1.7 in eclipse: operator is not allowed for source level below 1.7

Eclipse gives me an error: '<>' operator is not allowed for source level below 1.7 I guess this is because it is not using java 1.7. Except that it is. At least openjdk 1.7 (my OS is OpenSuse 12.3). I switched back from kepler to juno to reduce…
dorien
  • 5,265
  • 10
  • 57
  • 116
52
votes
1 answer

Using WinRT from C?

Watching the //BUILD stuff, I saw that WinRT API's can be consumed by C code: I am rather excited about a fresh C API available to Win32 developers. Where can I find information on the C WinRT API? How is it better than the existing Win32 C API?
Andrew
  • 829
  • 1
  • 8
  • 9
50
votes
1 answer

How to get a Brush from a RGB Code?

How can I get a Brush to set a Background of e.g. a Grid from a RGB Code. I hace the RGB Code as a int: R = 12 B = 0 G = 255 I need to know how to convert it into a Brush
gurehbgui
  • 14,236
  • 32
  • 106
  • 178
48
votes
10 answers

How to check if file exists in a Windows Store App?

Is there any other way of checking whether a file exists in a Windows Store app? try { var file = await ApplicationData.Current.LocalFolder.GetFileAsync("Test.xml"); //no exception means file exists } catch (FileNotFoundException ex) { …
48
votes
4 answers

How to Distribute Compiled Windows 8 Metro Applications without Windows Store?

I am just curious if there is a way to package up a Windows 8 Metro application to distribute it to others with the Windows 8 Developer Preview installed? It would be nice to be able to allow someone to just download and install, rather than…
48
votes
2 answers

Why does my application require Visual C++ Redistributable package

I'm writing a simple C++ application in Visual Studio. It also has a setup project. It works well on my development machine, but when I'm installing this application on user's machine it requires Visual C++ Redistributable Package. I'm wondering why…
JeB
  • 11,653
  • 10
  • 58
  • 87
48
votes
2 answers

Should I add my Metro app's TemporaryKey.pfx file to version control?

I've created a Metro-style C#/XAML application, and now I'm trying to add it to version control (Git and, later, GitHub). That means figuring out which files belong in version control and which don't. When I created my Metro project, Visual Studio…
Joe White
  • 94,807
  • 60
  • 220
  • 330
47
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
  • 11,548
  • 6
  • 67
  • 93
46
votes
2 answers

Mysterious "Not enough quota is available to process this command" in WinRT port of DataGrid

Edit Sept 26 See below for the full background. tl;dr: A data grid control is causing odd exceptions, and I am looking for help isolating the cause and finding a solution. I've narrowed this down a bit further. I have been able to reproduce the…
Dominic P
  • 2,841
  • 1
  • 14
  • 16
46
votes
1 answer

How to install a Windows 8 App Without Submitting to Store

For a customer I need a to present our Windows 8 Metro App. When I deploy my solution or project, I get a exe but I can't install it. I get a MessageError, that I can only start the exe in a app container. How can I create a version of my…
Matapolo
  • 667
  • 1
  • 6
  • 12
45
votes
6 answers

Converting HTML entities to Unicode Characters in C#

I found similar questions and answers for Python and Javascript, but not for C# or any other WinRT compatible language. The reason I think I need it, is because I'm displaying text I get from websites in a Windows 8 store app. E.g. é should…
Remy
  • 12,555
  • 14
  • 64
  • 104
44
votes
27 answers

Unable to Activate Windows Store App

I installed a retail version of Windows 8 Pro. I downloaded and installed Visual Studio Express 2012. I asked for and received a developers certificate. Then I tried to create a hello world app. From there I get a "Unable to Activate Windows…
Gerry
  • 1,838
  • 5
  • 24
  • 32
43
votes
1 answer

Using Client certificates for Windows RT (windows 8.1/windows phone 8.1)

I am trying a new feature of windows 8.1 and windows phone 8.1 namely the certificate stores and possibility to use client certificates for client authentication on the server side. However I am having problems with this functionality. I have a…
42
votes
2 answers

SignalR: There was an error invoking Hub method "XXX"

Server: public void AddLine(string line) { Clients.Others.addLine(line); } .NET Client: await rtHubProxy.Invoke("AddLine", "lineInfo"); Exception: InvalidOperationException: There was an error invoking Hub method 'xxx.AddLine'. Actually, I…
Isilmë O.
  • 1,668
  • 3
  • 23
  • 35
38
votes
8 answers

Creating Windows Metro style apps with Java?

I know how to create small desktop applications in Java. I want to know, can I make Windows Metro style apps in Java? Because on the web only C++/C/C#/JavaScript etc. are mentioned. If yes can you please give me some reference for a quick start. If…
Harshveer Singh
  • 4,037
  • 7
  • 37
  • 45