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.
ItemTemplate: ItemTemplate 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:
Here is a complete Code Download here