Building universal Windows apps

By | January 31, 2015

Building an app for Windows and Windows Phone at the same time is possible now. Project templates for universal apps are available when you install Visual Studio 2013 with Update 2 or later. Universal App is sharing code, user controls, styles, strings, and other assets between the two projects in Visual Studio. This reduces the time and expense associated with building and maintaining an app for each type of device.

Just imagine you have already developed a Windows Store app, and you want Windows Phone app for the same than you can easily add a Windows Phone Store app to the same solution and build Windows Phone app with less effort. Similarly, if you started by creating a Windows Phone app, you can easily add a Windows Store app.

Here we are providing steps to create Universal Apps:

Screenshot (43)
Select any one of the project template according to your requirement.
Screenshot (44)
Click ok to create…
Screenshot (45)
Created solution contains three projects

  • Windows 8.1
  • Windows Phone 8.1
  • Shared

Screenshot (46)
Shared project:
its contains any code that you want to share between apps. For example, if you created your app by using a Visual Studio template, consider moving the Common, DataModel, and Strings folders into the Shared project. You can even move App.xaml into the Shared project .
Screenshot (47)
Select Windows Project as default and run in simulator.
Screenshot (48)
Screenshot (51)
Screenshot (52)
Select Windows Phone Project as default and run in emulator.
Screenshot (53)
Screenshot (54)
Screenshot (55)
Screenshot (56)
Same project running in both device emulator.
Screenshot (57)