Build Windows Phone Apps In A Jiffy

Want to build Windows Phone apps? Don’t know anything about development or just want to get started, build working POC and hand-over to professional for final touch? Or just want to try your hands on Windows Phone development? This is the ‘right time’.

Today, Microsoft announced a Windows Phone App Studio for the savvy developer filled with great ideas but not enough time.

1

You can create apps in just 4 steps.

  • Select a template
  • Add content (static or dynamic like RSS feeds, HTML, etc…)
  • Choose the style, logo, design or do full customization
  • Use it, Share it, Publish it

2

The app created using this has a high-standard code and is ready to publish on Windows Phone store. Just download the package and publish it using your publisher account on Windows Phone Store. Don’t have one? Well, you can get one in just $19 “Summer Break” limited-time Dev Center registration offer (through August 26, 2013).

I hope, this will help you to get started with Windows Phone development and build that one mobile app, you always wanted to build Smile

Resources:

Namaste
Mayur Tendulkar

Advertisements

Windows Phone ‘Hello World’ App Using MVVM Light

When building any application, it is always a good practice to follow tried and tested design-patterns which will help in separation of concerns, code-reuse, maintainability, testability etc.… Just like ASP.NET there is MVC, for XAML based technologies (like Silverlight, Windows Presentation Foundation, Windows Store and Windows Phone apps), there is MVVM.

In this case, MVVM stands for – Model View ViewModel. As name suggests Model is nothing but classes representing data/entities. View represent actual view (pages in this context) whereas ViewModel does the binding between View and Model.

There are many frameworks out there which helps to build Windows Phone apps using MVVM pattern like Prism from Microsoft and MVVM Light from GalaSoft. In this blog, we’ll focus about MVVM Light.

First create a Windows Phone application.

image

Select Windows Phone 8.0 as OS Version in next dialog box.

Now, click on TOOLS > Library Package Manager > Manage NuGet Packages for Solution and search for MVVM Light in Online Gallery and install the same

image

When MVVM Light toolkit is installed, it modified App.Xaml file to instantiate the ViewModelLocator. These ViewModels are added in ViewModel folder.

image

MainViewModel is responsible to communicate between view and model. However, to keep things simple, we’ll expose a ApplicationName property which we’ll bind to Page.

image

Now, to bind ViewModel to View, in MainPage.xaml, add following code in phone:ApplicationPage element:

image

Now, bind ApplicationName to the textblock which displays App Name in MainPage.xaml

image

As soon as you modify above code, the UI changes and shows the Application Name. This is the beauty of using MVVM.

image

In next few blog-posts we’ll explore more about patterns and best practices in Windows Phone applications. Stay tuned! Smile

Resources:

Namaste

Mayur Tendulkar

Virtual Tech Conference 2013

South East Asia Microsoft Most Valuable Professionals are taking an initiative and hosting a virtual tech-conference. Best of the best speakers are going to talk about latest technology offerings from Microsoft. You can learn a lot from these sessions and you’ll also get an opportunity to ask questions if you’ve any. For more information, you can visit: http://virtualtechconference.azurewebsites.net/ for more information.

Capture

Even registration links are:

Dev Track – http://aka.ms/Ozhcyh
IT Pro Track – http://aka.ms/Uu9msj

Join us with this event and enjoy the learning.

Namste

Mayur Tendulkar