Hi there,
I would like to share my style resource across multiple chart controls, But I am unable to do this as "SliceStyles" hasn't got setter.
In short I want to assign following resource to SliceStyles.
I would like to share my style resource across multiple chart controls, But I am unable to do this as "SliceStyles" hasn't got setter.
In short I want to assign following resource to SliceStyles.
<x:Array Type="Style" x:Key="styleList"> <Style TargetType="Path"> <Setter Property="Fill" Value="#FF5661"/> </Style> <Style TargetType="Path"> <Setter Property="Fill" Value="#FF56DA"/> </Style> .......
.......
<Style TargetType="Path"> <Setter Property="Fill" Value="#89638E"/> </Style> </x:Array>
So far I tried below code, which will not work, Is there any workaround OR How should we address this in best way.<telerik:PieSeries ItemsSource="{Binding Items}" SliceStyles="{Binding Path=., Source={StaticResource styleList}}" ............
Note: We do not want to do following.<telerik:PieSeries.SliceStyles> <Style TargetType="Path"> <Setter Property="Fill" Value="#FF5661"/> </Style>
<Style TargetType="Path"> <Setter Property="Fill" Value="#89638E"/> </Style>
</telerik:PieSeries.SliceStyles>