This question is locked. New answers and comments are not allowed.
Hello.
Is it possible to bind color from object property for PieSeries items (when using binding to to custom objects)?
Is it possible to bind color from object property for PieSeries items (when using binding to to custom objects)?
<
chart:RadPieChart
Width
=
"350"
Height
=
"350"
Name
=
"AchievesChart"
>
<
chart:PieSeries
x:Name
=
"AchievesChartPieces"
ItemsSource
=
"{Binding Path=Categories}"
DataContext
=
"{Binding Main, Source={StaticResource Locator}}"
Loaded
=
"AchievesChartPieces_Loaded"
>
<
chart:PieSeries.LabelDefinitions
>
<
chart:ChartSeriesLabelDefinition
Binding
=
"ChartLabel"
/>
</
chart:PieSeries.LabelDefinitions
>
<!--<
chart:PieSeries.SliceStyles
>
<
Style
TargetType
=
"Path"
>
<
Setter
Property
=
"Fill"
Value
=
"Green"
/>
<
Setter
Property
=
"Stroke"
Value
=
"Black"
/>
</
Style
>
</
chart:PieSeries.SliceStyles
>-->
</
chart:PieSeries
>
</
chart:RadPieChart
>