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.

Filter by
Sorted by
Tagged with
5
votes
1answer
659 views

Deflating a Stream using System.IO.Compression

I receive messages from a MessageWebSocket connection frequently, which are compressed with zlib. The following code decompresses them to a stream which can be read ...
2
votes
1answer
413 views

Pulling time and date from the internet

I'm pulling the time and date from the internet because when the user turns the Raspberry Pi off, it loses its date and time settings and unfortunately Windows 10 IoT is very slow to correct it. I ...
7
votes
2answers
81 views

Cancellable UI loader

I'm playing with async/await, but I have yet to discover a standard method to safely cancel an intensive task. I have tested the following, and it works exactly as intended, though I remain unsure if ...
2
votes
1answer
3k views

Restore SQLite database backup

I have an application that provides the user the ability to backup the local SQLite database to another location. I then provide the ability to restore the backup database and overwrite the current ...
6
votes
1answer
148 views

XAML Markup Improvements

I have a Windows Store and Windows Phone app, and in this app I have many pages like this: ...
5
votes
2answers
667 views

Loading data into a number of different typed List<T>s: Can I do without reflection?

I'm not sure whether my distaste for reflection is justified or not, but it feels ucky that I'm using reflection here. I'm trying to make a very simple class which has a number of ...
11
votes
2answers
9k views

Verifying the type of an AggregateException's inner exception in a unit test

I've got the following code inside an integration test. ...