Hi,
I'm trying to use the SeriesStyle property of the StackedSeriesDefinition to set several properties for a lot graph but i get an XamlParseError :
Set property 'System.Windows.Style.TargetType' threw an exception
"'HorizontalStackedBarSeriesDefinition' type must derive from FrameworkElement or FrameworkContentElement."
Here is the xaml
Am i using the wrong property ?
Thanks
- Cedric -
I'm trying to use the SeriesStyle property of the StackedSeriesDefinition to set several properties for a lot graph but i get an XamlParseError :
Set property 'System.Windows.Style.TargetType' threw an exception
"'HorizontalStackedBarSeriesDefinition' type must derive from FrameworkElement or FrameworkContentElement."
Here is the xaml
<telerik:RadChart x:Name="chart7" ItemsSource="{Binding SampleData2}"> <telerik:RadChart.SeriesMappings> <telerik:SeriesMapping LegendLabel="SUCCESS" CollectionIndex="0"> <telerik:SeriesMapping.SeriesDefinition> <telerik:StackedBarSeriesDefinition SeriesItemLabelStyle="{StaticResource CustomSerieItemchart7}" SeriesStyle="{StaticResource MinimizedStackedBarSeriesDefinitionStyle}" /> </telerik:SeriesMapping.SeriesDefinition> ....<Style x:Uid="Style_26" x:Key="MinimizedStackedBarSeriesDefinitionStyle" TargetType="{x:Type telerik:HorizontalStackedBarSeriesDefinition}"> <Setter x:Uid="Setter_216" Property="ShowItemLabels" Value="false" /> <Setter x:Uid="Setter_217" Property="LabelSettings"> <Setter.Value> <telerik:BarLabelSettings x:Uid="telerik:BarLabelSettings_1" LabelDisplayMode="Outside" ShowConnectors="False" /> </Setter.Value> </Setter> </Style>Am i using the wrong property ?
Thanks
- Cedric -