Sample code from book: "Pro Windows 8.1 Development with XAML and C#" By Jesse Liberty , Philip Japikse , Jon Galloway http://www.apress.com/microsoft/visual-studio/9781430240471