Windows Universal Apps ! Let’s Do it

Are you a windows Developer, Did you heard about the new Windows 8.1 Universal Apps ! if not this blog will help you to start working with this.


Build a Windows universal app that targets Windows 8.1 devices

Build Apps for Windows Tablets, PC’s and Windows Phone at the same time using the same code, controls , style , variables and all the other assets using Visual Studio.

Are you looking to reduce time for developing apps and also targeting more devices? Are you looking for reducing expenses associated with building and maintaining apps ?,

So Universal Apps is the best solution for that, using the visual studio 2013 with R2 and later.

So, Let’s get started writing some code for a Windows universal app:

To get started, pick a project type for a Windows universal app in the New Project dialog box.

When you select a template for a Windows universal app and create a solution, three projects appear in Solution Explorer.

  1. A Windows project.
  2. A Windows Phone project.
  3. A Shared project.


Creating a Blank App (Universal Apps). | This will be the project structure.


Project Will Contain

  • XAML pages and code that target Windows.
  • XAML pages and code that target Windows Phone.
  • The Shared project is a container for code that runs on both platforms.

To debug any application, right click on it and select “Set as start up project”.

Write code that run for the Shared project:

When you’re writing code in the Shared project, the Visual Studio code editor uses a context that targets one platform or the other.

There is a context switcher in the Navigation bar to switch between the two targets ( WP, Windows Tablet)

If you use an API in shared code that’s not supported on both platforms, an error message will identify this API when you build the project. You don’t have to build the project, however, to confirm that you’re using cross-platform APIs. Check one of the following things in the code editor.

  • Look at the warning icons and the Intellisense text.
  • In the context switcher, switch the editor context to the other platform. This displays squiggly lines under APIs that are not supported on the selected platform.

After you identify platform-specific APIs, isolate them in your shared code.

Now you can start playing with Universal Apps !


One thought on “Windows Universal Apps ! Let’s Do it

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s