Hello,
I am importing several user controls with MEF into an ObservableCollection<UserControl> in my view model.
I am then binding the ItemsSource of my RadTileView to this ObservableCollection.
I want to set the Header of the tile view item to be bound to a string Property in the imported Views named "Title". I have set the property to NotifyPropertyChanged() when it is set and I have the following DataTemplate for the Tile Header:
I have then applied this to the RadTileView like this:
However, the header of the TileViewItems is still empty.
What am I doing wrong?
Thanks for your help.
Martyn.
I am importing several user controls with MEF into an ObservableCollection<UserControl> in my view model.
I am then binding the ItemsSource of my RadTileView to this ObservableCollection.
I want to set the Header of the tile view item to be bound to a string Property in the imported Views named "Title". I have set the property to NotifyPropertyChanged() when it is set and I have the following DataTemplate for the Tile Header:
<
UserControl.Resources
>
<
DataTemplate
x:Key
=
"ModuleTileHeaderTemplate"
>
<
TextBlock
Text
=
"{Binding Title}"
/>
</
DataTemplate
>
</
UserControl.Resources
>
I have then applied this to the RadTileView like this:
<
telerik:RadTileView
Name
=
"radTileView1"
ItemsSource
=
"{Binding HomeViews}"
ItemTemplate
=
"{StaticResource ModuleTileHeaderTemplate}"
MinimizedItemsPosition
=
"Top"
MaximizeMode
=
"ZeroOrOne"
>
<
telerik:RadTileView.ItemContainerStyle
>
<
Style
TargetType
=
"telerik:RadTileViewItem"
>
<
Setter
Property
=
"MinimizedWidth"
Value
=
"100"
/>
</
Style
>
</
telerik:RadTileView.ItemContainerStyle
>
</
telerik:RadTileView
>
However, the header of the TileViewItems is still empty.
What am I doing wrong?
Thanks for your help.
Martyn.