Implementing a custom Data Template Selector in Windows Phone 8’s ListBox control

In this post I will explain how to implement a custom data template selector and also how to create a DataTemplateSelector abstract class. Basically a DataTemplateSelector will provide a way to choose a DataTemplate based on the data object and the data-bound element. You need a DataTemplateSelector when you have more than one DataTemplate for the […]

Read More

How to bind ListBox to data in Windows phone application – Introduction

As an application developer, you can create ListBox controls without specifying the contents of each ListBoxItem separately. You can use data binding to bind data to the individual items. In this post, I will explain with the help of an example how to create a ListBox that populates the ListBoxItem elements by data binding to a data source. Suppose you want to display […]

Read More