MSDN: Build apps that target Windows and Windows Phone 8.1 by using Visual Studio

This is a post from MSDN for the new Universal apps for Windows 8.1 and Windows Phone 8.1. Get the latest resources from http://dev.windows.com You can build an app for Windows and Windows Phone 8.1 at the same time, and share code, user controls, styles, strings and other assets between them. This reduces the expense … Continue reading MSDN: Build apps that target Windows and Windows Phone 8.1 by using Visual Studio

Advertisements

Crafting a Task.TimeoutAfter Method

Imagine that you have a Task handed to you by a third party, and that you would like to force this Task to complete within a specified time period. However, you cannot alter the “natural” completion path and completion state of the Task, as that may cause problems with other consumers of the Task. So … Continue reading Crafting a Task.TimeoutAfter Method

Json.NET 5.0 with .NET 4.5, BigInteger, Read-Only Collections and more

New and Updated Libraries In Json.NET 5.0 there are a bunch of library version changes: Added .NET 4.5 library Added portable library targeting .NET 4.5 + WP8 + Win8 Removed the Silverlight library. Removed the Windows Phone library Upgrading library versions allows Json.NET to support new .NET features such as dynamic and async across more … Continue reading Json.NET 5.0 with .NET 4.5, BigInteger, Read-Only Collections and more

Using SQL Compact for Entity Framework

Entity framework will always try to connect to the local SQL Server Express database (.\SQLEXPRESS). Starting with EF 5, Ef will use LocalDb if it doesn’t detect SQL Express running. SQL Express will always get precedence if it is installed, even if you are using Visual Studio 2012. The first step I would recommend is trying to determine … Continue reading Using SQL Compact for Entity Framework

HTML 5: Playing MP3 using Audio Tag

HTML 5 supports a new Audio tag, which allows you to play music. Here's a sample HTML Audio Tag: <audio controls="controls"> <source src="song.ogg" type="audio/ogg" /> <source src="song.mp3" type="audio/mp3" /> Your browser does not support the audio tag. </audio> Now you would think that it would be relatively simple to play music on the latest HTML … Continue reading HTML 5: Playing MP3 using Audio Tag

WPF 4.5: Binding and change notification for static properties

One of the new features in WPF 4.5 is support for binding to static properties. In addition to the binding syntax itself, there's new support for static property change notification. In many cases, it is still advisable to use a Singleton pattern or another approach for binding. However, there are cases when your application design … Continue reading WPF 4.5: Binding and change notification for static properties

await and async keywords

The await operator is applied to a task in an asynchronous method to suspend the execution of the method until the awaited task completes. The task represents ongoing work. The asynchronous method in which await is used must be modified by the async keyword. Such a method, defined by using the async modifier, and usually containing one or more await expressions, is referred to as … Continue reading await and async keywords