Hello,
I am running into a problem with the RadTileView, and the RadFluidContentControl. I am binding the ItemsSource to a list in my ViewModel, and in turn, I am using the ContentTemplate to render the items, I added a RadFluidContentControl, and use the SmallContentTemplate, MediumContentTemplate, and LargeContentTemplate but it never changes the content in the template, The same xaml using hard coded content seems to work fine. Is this a bug in the RadFluidContentControl,or am I using it wrong?
Below is the Xaml that I am working with. Rooms is a list of classes with a "DisplayName" property.
Thanks in advance for any help.
I am running into a problem with the RadTileView, and the RadFluidContentControl. I am binding the ItemsSource to a list in my ViewModel, and in turn, I am using the ContentTemplate to render the items, I added a RadFluidContentControl, and use the SmallContentTemplate, MediumContentTemplate, and LargeContentTemplate but it never changes the content in the template, The same xaml using hard coded content seems to work fine. Is this a bug in the RadFluidContentControl,or am I using it wrong?
Below is the Xaml that I am working with. Rooms is a list of classes with a "DisplayName" property.
Thanks in advance for any help.
| <telerik:RadTileView Margin="8" MinimizedColumnWidth="220" ItemsSource="{Binding Rooms}" > |
| <telerik:RadTileView.ItemTemplate> |
| <DataTemplate> |
| <TextBlock Text="{Binding DisplayName}"> |
| </TextBlock> |
| </DataTemplate> |
| </telerik:RadTileView.ItemTemplate> |
| <telerik:RadTileView.ContentTemplate> |
| <DataTemplate> |
| <telerik:RadFluidContentControl BorderBrush="black" BorderThickness="2" SmallToNormalThreshold="190, 140" |
| NormalToSmallThreshold="190, 140" NormalToLargeThreshold="320, 320" |
| LargeToNormalThreshold="320, 320" ContentChangeMode="Automatic"> |
| <telerik:RadFluidContentControl.SmallContentTemplate> |
| <DataTemplate> |
| <Grid> |
| <TextBlock Text="{Binding DisplayName}"></TextBlock> |
| <TextBlock Text="small"></TextBlock> |
| </Grid> |
| </DataTemplate> |
| </telerik:RadFluidContentControl.SmallContentTemplate> |
| <telerik:RadFluidContentControl.ContentTemplate> |
| <DataTemplate> |
| <Grid> |
| <TextBlock Text="{Binding DisplayName}"></TextBlock> |
| <TextBlock Text="Medium"></TextBlock> |
| </Grid> |
| </DataTemplate> |
| </telerik:RadFluidContentControl.ContentTemplate> |
| <telerik:RadFluidContentControl.LargeContentTemplate> |
| <DataTemplate> |
| <local:RoomControl Margin="10" HorizontalAlignment="Left" VerticalAlignment="Top" DataContext="{Binding}"/> |
| </DataTemplate> |
| </telerik:RadFluidContentControl.LargeContentTemplate> |
| </telerik:RadFluidContentControl> |
| </DataTemplate> |
| </telerik:RadTileView.ContentTemplate> |
| </telerik:RadTileView> |
