Posted 18 Apr 2012 Link to this post
if (Bkgrd.SelectedColor != null && Bkgrd.SelectedColor is Color)
{
var color = (Color)Bkgrd.SelectedColor;
DiaGrid.Background = new SolidColorBrush(color);
<
telerik:RadDiagram.Background
>
SolidColorBrush
Color
=
"{Binding SelectedColor, ElementName=Bkgrd}"
/>
</
You can bind the Background of the RadDiagram only to Brush, but not defined static in XAML like the way you have tried. You can use the Telerik's ColorToBrushConverter. Please check out this realized in the attached sample.
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>