I am attempting to place a RadChart with the legend collapsed within the small content RadFluidContentControl of a tileview, but setting the ChartLegend visibility to "Collapsed" does not appear to work. However, if I utilize the same XAML code within a usercontrol and display the usercontrol in the small content RadFluidContentControl it does collapse the legend. Any idea how to resolve this using in-line XAML within the RadFluidContentControl rather than utilize a usercontrol for the display of the chart?
My sample code for the specification of the tileview's content:
<DataTemplate x:Key="ContentTemplate">
<telerik:RadFluidContentControl ContentChangeMode="Automatic" State="Normal" NormalToSmallThreshold="250 250" NormalToLargeThreshold="500 500">
<telerik:RadFluidContentControl.SmallContent>
<Grid DataContext="{Binding Source={StaticResource SampleDataSource}}">
<telerik:RadChart x:Name="chtTrendingChart_Small" telerik:StyleManager.Theme="Windows8" ItemsSource="{Binding Collection}">
<telerik:RadChart.DefaultView>
<telerik:ChartDefaultView>
<telerik:ChartDefaultView.ChartLegend>
<telerik:ChartLegend Visibility="Collapsed" />
</telerik:ChartDefaultView.ChartLegend>
</telerik:ChartDefaultView>
</telerik:RadChart.DefaultView>
</telerik:RadChart>
</Grid>
</telerik:RadFluidContentControl.SmallContent>
<telerik:RadFluidContentControl.Content>
<local:UC_SmallGraph/>
</telerik:RadFluidContentControl.Content>
<telerik:RadFluidContentControl.LargeContent>
<local:UC_LargeContent/>
</telerik:RadFluidContentControl.LargeContent>
</telerik:RadFluidContentControl>
</DataTemplate>
My sample code for the specification of the tileview's content:
<DataTemplate x:Key="ContentTemplate">
<telerik:RadFluidContentControl ContentChangeMode="Automatic" State="Normal" NormalToSmallThreshold="250 250" NormalToLargeThreshold="500 500">
<telerik:RadFluidContentControl.SmallContent>
<Grid DataContext="{Binding Source={StaticResource SampleDataSource}}">
<telerik:RadChart x:Name="chtTrendingChart_Small" telerik:StyleManager.Theme="Windows8" ItemsSource="{Binding Collection}">
<telerik:RadChart.DefaultView>
<telerik:ChartDefaultView>
<telerik:ChartDefaultView.ChartLegend>
<telerik:ChartLegend Visibility="Collapsed" />
</telerik:ChartDefaultView.ChartLegend>
</telerik:ChartDefaultView>
</telerik:RadChart.DefaultView>
</telerik:RadChart>
</Grid>
</telerik:RadFluidContentControl.SmallContent>
<telerik:RadFluidContentControl.Content>
<local:UC_SmallGraph/>
</telerik:RadFluidContentControl.Content>
<telerik:RadFluidContentControl.LargeContent>
<local:UC_LargeContent/>
</telerik:RadFluidContentControl.LargeContent>
</telerik:RadFluidContentControl>
</DataTemplate>