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

Disable or prevent a Page from Portrait Mode in Windows 8

How do we disable Portrait mode of a View in windows 8 ? Or For a specific View don't want portrait mode (Rotation of content) .How can prevent this? I didn't find any useful answer on this topic.Please help.
asitis
  • 3,023
  • 1
  • 31
  • 55
3
votes
2 answers

Windows Store Apps: change application culture at runtime without restarting the application?

I have a windows store app that supports English (LTR) and Arabic (RTL). I want to add an option in the settings to enable the user to change the app culture from English to Arabic and vice versa. I want the string resources and the UI flow…
Mina Wissa
  • 10,923
  • 13
  • 90
  • 158
3
votes
2 answers

How can I determine which items in a GridView that are visible in the current scroll window?

I have a GridView in my main app page and I want to do some background processing for the items that are currently in view for the user (high priority), and then of course do the other items too (low priority). I can access the ScrollBar and the…
swinefeaster
  • 2,525
  • 3
  • 30
  • 48
3
votes
1 answer

How to dynamically bind event to command in WinRT without Reactive framework?

I'm implementing modified version of Behavior for my Windows 8 app according to this guide. It works except one place where the Reactive framework is required: protected override void OnAttached() { var evt =…
Martin Suchan
  • 10,600
  • 3
  • 36
  • 66
3
votes
2 answers

XML Reader not Reading Child nodes Properly

I'm having a problem when reading some XML into a Windows 8 store app. I've got some XML with multiple parent and child nodes in which I need to only read one of the nodes and concatenate it all into a single string. I've tried many different ways…
AlexEve
  • 77
  • 2
  • 10
3
votes
1 answer

WinRT XAML Toolkit TextBoxValidationExtension not validating on initiale binding in the ViewModel

I'm using the TextBoxValidationExtension in a MVVM pattern. I was having a problem with the validation because I'm setting my binding source in TwoWay mode in the NavigatedTo method which is called after the TextBoxFormatValidationHandler.Attach…
3
votes
2 answers

Is it possible to share data between users in a Windows Store App?

I'm pretty sure that I know the answer to this question (A big fat NO), but is it possible to share downloaded data between the same application but multiple users (Windows login, not Microsoft Store users) in a Windows Runtime environment? The…
borrrden
  • 33,256
  • 8
  • 74
  • 109
3
votes
2 answers

Winrt StreamWriter & StorageFile does not completely Overwrite File

Quick search here yielded nothing. So, I have started using some rather roundabout ways to use StreamWriter in my WinRT Application. Reading works well, writing works differently. What' I'm seeing is that when I select my file to write, if I…
RallyRabbit
  • 433
  • 1
  • 8
  • 20
3
votes
1 answer

ContentControl with DataTemplateSelector and bound Content

I have the following ContentControl two-way binded with a Current property that shows the current selection of my ListView. It uses a…
letiagoalves
  • 11,224
  • 4
  • 40
  • 66
3
votes
2 answers

Windows RT - synchronous usage of StorageFile

I want to write a Win8 app, there I use a Configuration-class with a static member, which is loaded once at startup and can be accessed from everywhere at runtime. So, the main problem is, the default settings are stored within an xml file, but…
Michael Dietrich
  • 451
  • 1
  • 5
  • 17
3
votes
2 answers

Metro App CollectionViewSource ObservableCollection Filter

It appears that filtering an ObservableCollection with CollectionViewSource is not possible in WinRT: See here! I can filter using LINQ, but how do I get the UI to update if changes that affect the filtered data are made?
3
votes
1 answer

Catch an async lambda exception

I am working on Windows 8 (using C#) and when using the async keyword there's a scenario where i can't seem to handle exceptions well. The scenario involves launching an async lambda, posting it to run on the UI thread. Exceptions that occur during…
lysergic-acid
  • 19,570
  • 21
  • 109
  • 218
3
votes
3 answers

Uri Formatting on Image Source

What is wrong with the following uri? bmi.UriSource = (new Uri(@"/Assets/Image.png", UriKind.Relative)); Where bmi is a BitmapImage. I have the build action for the image set to Embedded Resource.
windowsgm
  • 1,566
  • 4
  • 23
  • 55
3
votes
1 answer

Create c# class with a table. Sqlite-net

I have SQLite database in isolated storage in Windows Store App. I use SQLite for Windows Runtime My class: [Table("Projects")] public class Project { [PrimaryKey] [Column ("id")] public int Id { get; set; } [Column("group_id")] …
jimpanzer
  • 3,470
  • 4
  • 44
  • 84
3
votes
3 answers

Windows 8 App Local Storage

I am trying to develop Windows 8 apps using C# and I need to store two list's (string and DateTime) in local settings List names = new List(); List dates = new List(); I used LocalSettings for that according to…
cewrld
  • 31
  • 1
  • 2
1 2 3
99
100