Binding to Object
To bind the RadTaskBoard to a collection with custom objects you can use its ItemsSource property.
The following tutorial will guide you how to bind a RadTaskBoard to a collection of custom business objects.
First, we will specify the following classes, which are going to be used to populate the RadTaskBoard control.
Example 1: Creating ViewModels
Example 2: Defining RadTaskBoard in XAML
- If you want to use the default look of the card, you can just bind your properties. You can place a RadTaskBoardCard element in the DataTemplate and bind its properties to the properties from the business object.
The CategoryCollection and CategoryModel class can be accessed in XAML through the following namespace:
xmlns:taskBoard="clr-namespace:Telerik.Windows.Controls.TaskBoard;assembly=Telerik.Windows.Controls"
Example 3: Defining RadTaskBoardCard in ItemTemplate
- If you want to have your own look. You can place your structure in the DataTemplate applied to the ItemTemplate property of the RadTaskBoard.