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
3
votes
2 answers

Stream, string and null character

I have a stream which contains several \0 inside it. I have to replace textual parts of this stream, but when I do StreamReader reader = new StreamReader(stream); string text = reader.ReadToEnd(); text only contains the beginning of the stream…
Nicolas Voron
  • 2,916
  • 1
  • 21
  • 35
3
votes
3 answers

Is there a possibility to start another App or Program from a Windows 8 Store App (C#)

I want to start another App or Program from my Windows Store App. For example my App is showing emails, so if someone clicks on such an email Outlook should open. Is this possible in an "App-Sandbox"?
Martin
  • 3,096
  • 1
  • 26
  • 46
3
votes
1 answer

How to create variable sized group panels to fit the items in Windows 8 XAML

The problem I'm having is the grouped grid view sizes all of its groups to the size of the first group as in the screenshot below: I need the groups to have different widths to accomodate their children. In this case the second group should be…
dcdroid
  • 672
  • 2
  • 9
  • 29
3
votes
1 answer

How do we know SymmetricAlgorithmNames::AesCbc is 128 bit or 256 bit in WinRT?

I am using SymmetricAlgorithmNames::AesCbc and SymmetricAlgorithmNames::DesCbc algorithms in my Data Encryption implementation in WinRT. I need to ensure that these algorithms are at least 128 bit algorithms which is not evident from the algorithm…
3
votes
1 answer

How do we wrap C++ variable argument parameter in WinRT components

I have a C++ method that takes variable argument as init param. Something like MyMethod(std::wchar_t*, ...) Can someone please let me know how can we write a WinRT component wrapper to expose the variable arguments?
Prafulla
  • 65
  • 6
3
votes
1 answer

Using linq to filter observablecollection by textbox prevents english typing

First of all, while there are many answered questions about using linq to filter an observablecollection via a user-inputted textbox, but nothing about when running the code, it prevents me from typing in English. To explain my code, I have a simple…
john pak
  • 53
  • 5
3
votes
1 answer

SQLite Cascade Delete

actually i'm developping windows metro app using SQLite DataBase. i use sqlite manager (mozilla) for administration. i tried delete cascade but it work only in sqlite manager not in C# code : My function public async Task DeleteSurvey(int…
Bedine
  • 31
  • 2
3
votes
0 answers

WinRT C++ assign a named style to an element programmatically

I have created several styles in the Application.Resources (App.xaml) Was going to set these styles dynamically as the app was running. I can not find a way to read the the App.xaml file in C++. This is an example of what I have…
WoofWoof88
  • 1,107
  • 1
  • 8
  • 11
3
votes
1 answer

Binded content on ContentControl is null in DataTemplateSelector

I have to insert SVG logos as category names on my homepage, each category has its logo. They are defined in the app.xaml as DataTemplates and I am including them on my homepage in a ContentControl with a DataTemplateSelector to display the right…
Czoo
  • 394
  • 1
  • 6
  • 20
3
votes
2 answers

Is there an equivalent to an Android Handler in the WinRT API?

Android provides a Handler class that runs tasks (of type Runnable or Message) serially on a single thread. I am trying to reproduce this exact behavior in a Windows Store App and the only classes I see are ThreadPool and ThreadPoolTimer which I…
satur9nine
  • 13,927
  • 5
  • 80
  • 123
3
votes
1 answer

Read a file in WinRT class library

In a Windows Store app project I was reading a File like this: var uri = new Uri("ms-appx:///DataModel/Accounts.csv"); var file = await StorageFile.GetFileFromApplicationUriAsync(uri); var read = await FileIO.ReadTextAsync(file); The file…
Marius
  • 1,042
  • 1
  • 8
  • 19
3
votes
1 answer

Launcher.LaunchFileAsync fails for opening a file extension associated with a desktop app

I am trying using file association to open a desktop app from modern app. I followed all the steps correctly and am able to open the .try files with updater.exe through windows explorer. But when I try to do the same thing in my modern app…
3
votes
1 answer

cannot find type system.windows.controls.control in module system.windows.dll

I converted a Windows Phone 8 app to a Windows Store app. All the changes went well, I was able to remove all the errors. Finally when I am trying to build my app I'm getting this error: "cannot find type system.windows.controls.control in module…
3
votes
1 answer

Additional Parameters on Windows Notification Server

I try sending push notification, I'm on server-side. Is there a way in WNS, the push service for Windows 8, to send additional parameters, that will not be displayed. On Windows Phone 7, I use the wp:Param as Follow :
3
votes
0 answers

Record Windows Store app with Simulator on Visual Studio 2012

I need to record a video tutorial for my Windows Store app. I know that there is many software for screen recording but I want to record app experience with different resolutions, using touch mode and different orientations. Since my PC does not…
1 2 3
99
100