I am using telerik RadTileView control. I had to create a template to stick it to ContentTemplate. This has a ItemSource bound to ObservableCollection.
I am not able to understand as to how I can bind the name of the RadTileViewItem.
<
Window.Resources
>
<
DataTemplate
x:Key
=
"tileHeaderTemplate"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
HorizontalAlignment
=
"Center"
Text
=
"{Binding Name}"
></
TextBlock
>
<
Button
x:Name
=
"btnCloseTileItem"
HorizontalAlignment
=
"Right"
Content
=
"X"
Click
=
"btnCloseTileItem_Click"
></
Button
>
</
StackPanel
>
</
DataTemplate
>
<
DataTemplate
x:Key
=
"TabItemTemplate"
>
<
Grid
>
......
Some controls here
</
Grid
>
</
DataTemplate
>
</
Window.Resources
>
<
telerik:RadTileView
x:Name
=
"SelectedTablesTile"
ColumnsCount
=
"3"
ColumnWidth
=
"*"
ItemTemplate
=
"{StaticResource tileHeaderTemplate}"
ItemsSource
=
"{Binding FinalTablesCollection}"
ContentTemplate
=
"{StaticResource TabItemTemplate}"
IsAutoScrollingEnabled
=
"True"
IsDockingEnabled
=
"True"
IsVirtualizing
=
"True"
MinimizedColumnWidth
=
"150"
MinimizedRowHeight
=
"150"
PreservePositionWhenMaximized
=
"True"
RowHeight
=
"150"
TileStateChangeTrigger
=
"SingleClick"
AllowDrop
=
"False"
Grid.Row
=
"0"
>
</
telerik:RadTileView
>
I am not able to understand as to how I can bind the name of the RadTileViewItem.