as discussed here I use programmatical Binding like
Code: Select all
BindingOperations.SetBinding(_chart.ViewXY, ViewXY.GraphBorderColorProperty, new Binding { Path = new PropertyPath("AcceptedAreaColor") });
Code: Select all
System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=AcceptedAreaColor; DataItem=null; target element is 'ViewXY' (HashCode=39482019); target property is 'GraphBackground' (type 'Fill')
System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=AcceptedAreaColor; DataItem=null; target element is 'ViewXY' (HashCode=39482019); target property is 'GraphBorderColor' (type 'Color')
System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=AxesColor; DataItem=null; target element is 'ZoomPanOptions' (HashCode=10044206); target property is 'ZoomRectLine' (type 'LineStyle')
Frank