Run Windows Store Apps From Desktop

Thursday, February 7, 2013

When customers ask me how they can run Windows Store app from Desktop usually the answer is – You Can’t, but if you really want there is a way to do that. The reason I usually answer is You Can’t is because – In order to run Windows Store app from Desktop you need to install Windows App Certification Kit, this pack contains “microsoft.windows.softwarelogo.appxlauncher.exe” file that can run a Windows Store app by his application model id. So if you plan on publishing your app you can’t assume the ACK is installed on the client machine. ...

WinRT Toast Notification From Desktop Application

Wednesday, January 30, 2013

The post title maintained Toast Notification but after reading this post we'll be able to perform API calls to WinRT from your Desktop application. As you know WinRT exposing API’s for three developer languages: C#, C++ and JavaScript, this means that from each language you’ll be able to perform WinRT calls. The idea is based on Windows Metadata File (winmd) that expose those APIs that can be consumed across a variety of technologies and languages. Download Demo Project So why not using those calls from a desktop application? for example one of the great...

Windows Store App – Resize Image (JavaScript)

Wednesday, October 31, 2012

In this post I’ll demonstrate how to change picture size using JavaScript while constraining the image proportions. Resize image functionality can be used in several scenarios in Windows Store app, for example: if your app allow the user to download images from the web you might want to resize the image to reduce space usage. Also if you whish to share this image using Roaming Storage you need to make sure the image size is small enough so the Roaming sync will not failed. The first steps for this demo is using FileOpenPicker to allow the user...

Windows 8 Metro – Code Behind

Tuesday, October 9, 2012

When I develop Windows 8 Metro App I usually use Windows Store app samples to see code examples features but sometimes you want more… For example I really want to know how “Mail” metro app works: How getting access to other email account, sending email and more. So in order to to that I had to gain access to “Mail” metro app… Let’s start the Hack: Problem: WindowsApps folder is blocked and by default you can’t open this folder. Solution: First open Windows Explorer and navigate into “C:\Program Files\”, locate “WindowsApps” folder....

Windows 8 RTM JavaScript–Change Lock Screen Image

Sunday, September 23, 2012

Tweet In the past couple of months I’ve worked a lot with Windows 8 JavaScript and C#, I’ve also wrote plenty of posts on that subject and there is much more stuff to talk about. In this post I’ll show two things: Using File Picker using JavaScript Change Windows 8 Lock Screen Image Programmatically Download Demo Project Step 1: Create Blank JavaScript Project In the app.onactivated function we add the following code to listen the Choose Picture button and calling the displayCurrentImg function. ...

Windows 8 RTM C# – Capture Media

Tweet I left JavaScript and started to work on Windows 8 Metro using C# and XAML, in this post I’ll demonstrate how to use WinRT for Camera, File Picker and Audio Recording. Download Demo Project Step 1: Create Blank Metro Project and Initialize MediaCapture Taking pictures using Camera or File Picker is pretty easy using WinRT, we going to use the MediaCapture class for Audio Recording, CameraCaptureUI for taking Picture from the built in Camera and FileOpenPicker for choosing pictures from local directories. The MediaCapture class will allow us to capture: ...

How To: Bing Maps Custom Tile Overlay – Google Maps

Sunday, June 24, 2012

Tweet I got a question from a friend who wanted to replace Bing Maps Tiles with Google Maps Tiles. You might ask yourself why? If you want Google Tiles just replace Bing Control and work with Google Maps…..  In this case I want to work with Bing Map Control because the benefits I get in Metro Applications in Windows 8 for C#, C++, VB.NET and JavaScript.  And I also want Google Maps language support. Download Demo Project Currently Bing Maps doesn't support any language except English, and I want to display the map with...

How To: Bing Maps For Windows 8 Metro Apps – JavaScript

Friday, June 22, 2012

In my last post I talked about Bing Map for C#, but you can also do the same of JavaScript projects using Bing Maps SDK. Download Demo Project Step 1: Maps Developer Account Before you can use Bing Sdk from Windows 8 Metro App you need Maps Developer Account, open http://www.bingmapsportal.com/, create or enter with existing Windows Live account. Choose “Create or view keys” and create new Key for your application. Step 2: Create Bing Maps Metro Application Download the latest bits - Bing Maps SDK for...

Upgrade Metro App From Beta To RC

Sunday, June 3, 2012

In my previous post Convert VS 11 Beta Metro Projects To VS 2012 RC I talked about upgrading the Project file from Beta to RC, in this post I’ll try to talk about all changes made from Beta to RC. I don’t know all the breaking changes in JavaScript and C# but I collect all the breaking changes from the application and games I develop and I’ll show them here. JavaScript + HTML Type ...

Convert VS 11 Beta Metro Projects To VS 2012 RC

Over the last months I’ve worked a lot with Windows 8 Metro applications, from Consumer Preview to Preview 2 and now to RC. When working on Beta versions you know that you have to upgrade your app when RC or RTM versions will published, and sometime those upgrades can take a while… So this is the first part of upgrading your Project from Visual Studio 11 Beta to Visual Studio 2012 RC, in my next post I’ll talk about code Changes from Beta to RC both for C# and JavaScript. JavaScript For JavaScript project...