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...

Windows 8 – Icons

Wednesday, April 11, 2012

Tweet Everyone who start developing for Windows 8 most heard about the AppBar control, the AppBar control is a navigation bar allowing the developer to add commands for his application. When you define a command for AppBar you can set a Icon for it and there is already a lot of icons available for you out of the box in any Metro app. To use those built it icons in C# and JavaScript you just need to set the font-family to - Segoe UI Symbol and write down the hexadecimal value...

Windows 8 – DEP0600 : The following unexpected error occurred during deployment

Sunday, April 1, 2012

Tweet While working on JavaScript Game in Windows 8 I got the below error when trying to run it from Visual Studio 11: Error : DEP0600 : The following unexpected error occurred during deployment: Illegal characters in path.    at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)    at System.IO.Path.Combine(String path1, String path2)    at Microsoft.VisualStudio.ImmersiveProjectServices.Shared.AppxLayoutManager.CheckPackageLayoutState(DeployPackageName deployPackageName, String location)   ...

Window 8 JavaScript–Asynchronous Programming & App Storage

Wednesday, March 7, 2012

Tweet In this post I’m going to talk about WinJS.xhr that makes an XMLHttpRequest as a Promise, and how to save and load images and from your local storage. What is a Promise? Promise is a way for Asynchronous Programming in JavaScript, Avoiding synchronous execution in single-threaded languages like JavaScript is necessary in order to create apps that are responsive and high performing. Windows Library for JavaScript provides a consistent and predictable mechanism called a Promise that simplifies asynchronous programming. A promise implements a method for registering callbacks for state change notifications, named...

Windows 8 JavaScript–Splash Screen

Sunday, March 4, 2012

Tweet When creating an Win 8 Metro App you define splash screen with a single image, what if you want to do more… For example show some animations, load your resources before the application loads and more. In this post I’ll show you how to create custom Splash Screen and control the load event so you know when the loading is over and your user can start using the application. In my demo I’ll display some canvas animation and a timer (from 10s) until going to the main page. Download Demo ProjectStep 1: Create Navigation...

Windows 8 JavaScript – Message Dialog

Friday, March 2, 2012

Tweet In my previous post I talked about App Settings, and now it’s time to talk about on of the most important things – Message Dialog. Download Demo Project I’ve already saw people who wrote overlay div to show messages, just because they didn’t find how to add more buttons for the Message Dialog, so let me show you how- Using the WinRT you can use the MessageDialog to popup a message to the user: var msg = new Windows.UI.Popups.MessageDialog("Message Content", ...