Hi,
i am showing two colors for my rad piechart,for this i wrote code in xaml like this
<
telerik:RadChart.PaletteBrushes
>
<
SolidColorBrush
Color= #FF3597CA" />
<
SolidColorBrush
Color
=
" #FF3597CA"
/>
</
telerik:RadChart.PaletteBrushes
>
is it possible to have a color using property like this,
<
telerik:RadChart.PaletteBrushes
>
<
SolidColorBrush
Color
=
"{Binding Palette}"
/>
</
telerik:RadChart.PaletteBrushes
>
In code behind
public BrushCollection Palette
{
get
{
return this._palette;
}
set
{
this._palette = value;
}
}
//Construcotr
public Example()
{
InitializeComponent();
this.Palette = new BrushCollection()
{
new SolidColorBrush(Color.FromArgb(255, 106, 148, 200)),
new SolidColorBrush(Color.FromArgb(255, 154, 204, 255)),
};
}
but this code is not working..
Thank you,
Saravanan