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
1 answer

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 ...
user2950509's user avatar
2 votes
1 answer

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 ...
user1234433222's user avatar
7 votes
2 answers

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 ...
Avenicci's user avatar
  • 143
2 votes
1 answer

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 ...
dub stylee's user avatar
6 votes
1 answer

XAML Markup Improvements

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

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 ...
Ashley Davies's user avatar
15 votes
3 answers

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

I've got the following code inside an integration test. ...
Jeroen Vannevel's user avatar