Sample code for WinRT/Windows Runtime