How to create simple list in Windows Phone


In this post I am going to show you how to build simple list in windows phone with proper scrolling.

Let’s take an example, to display list of cities, it will shown the minimal lines of code to implement it.

In this example to display the data, here we want to show only one attribute/property (city) in the listbox control, so here we are going to customized the ItemTemplate to display data.

Let’s talk about the technical stuff, how you are proceeding and understanding the concept of listItem customization.

Here is core components are described, to customized the listbox.

ItemTemplateItemTemplate to specify the visualization of the data objects. Its contains only one DataTemplate

DataTemplate: The DataTemplate specifies, that each data item appearing in it.

Here is a basic list design to understand the customization of listbox control.

XAML Code snippet:


CS Code Here:


State Class


Here is a complete Code Download here

Happy Coding Thumbs up


About Pavan Pareta

My name is Pavan Pareta, I enjoy computers and general technology. I am more interested in the areas of Computer Security, Programming and developing innovative s/w for Windows Mobile and Windows Phone 7. I like MS Technology and support open-source software, because I believe it plays a major role in knowledge sharing and exchange of ideas, which effectively leads to better software. Additionally, I am a follower of the KISS (Keep It Simple Stupid) philosophy. I Love C#.NET and recently I am fall in love with Silverlight :) Introduce to my machine My main workstation is a Intel Pentium Core Duo and my primary operating system is Windows 7.
This entry was posted in Windows Mobile. Bookmark the permalink.

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