Hello,
I am using MVVM in RadDiagram.
I am facing a binding error when using style bindings to apply bindings on the RadDiagramShape properties. The binding works, but the error is a little bit anoying.
This is my XAML:
<Style TargetType="telerik:RadDiagramShape" BasedOn="{StaticResource RadDiagramShapeStyle}"> <Setter Property="Background"> <Setter.Value> <LinearGradientBrush> <LinearGradientBrush.GradientStops> <GradientStop Offset="0" Color="{Binding BkgrdGradientColor1}" /> <GradientStop Offset="1" Color="{Binding BkgrdGradientColor2}" /> </LinearGradientBrush.GradientStops> </LinearGradientBrush> </Setter.Value> </Setter>
This is the binding error:
Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=BkgrdGradientColor1; DataItem=null; target element is 'GradientStop' (HashCode=57039000); target property is 'Color' (type 'Color')
Can you help me with that?
regards,
Tobias