Skip to content
This repository was archived by the owner on Jul 4, 2024. It is now read-only.

Conversation

@L1ttleFlyyy
Copy link

The error happens when using default d3:Chart control:

System.Windows.Data Error: 1 : Cannot create default converter to perform 'two-way' conversions between types 'System.Windows.Media.SolidColorBrush' and 'System.Windows.Media.Brush'. Consider using Converter property of Binding. BindingExpression:Path=Stroke; DataItem='AxisGrid' (Name=''); target element is 'Path' (Name=''); target property is 'Stroke' (type 'Brush')
System.Windows.Data Error: 1 : Cannot create default converter to perform 'two-way' conversions between types 'System.Windows.Media.SolidColorBrush' and 'System.Windows.Media.Brush'. Consider using Converter property of Binding. BindingExpression:Path=Foreground; DataItem='Axis' (Name=''); target element is 'Path' (Name=''); target property is 'Stroke' (type 'Brush')
System.Windows.Data Error: 1 : Cannot create default converter to perform 'two-way' conversions between types 'System.Windows.Media.SolidColorBrush' and 'System.Windows.Media.Brush'. Consider using Converter property of Binding. BindingExpression:Path=Foreground; DataItem='Axis' (Name=''); target element is 'Path' (Name=''); target property is 'Stroke' (type 'Brush')
System.Windows.Data Error: 1 : Cannot create default converter to perform 'two-way' conversions between types 'System.Windows.Media.Brush' and 'System.Windows.Media.SolidColorBrush'. Consider using Converter property of Binding. BindingExpression:Path=Foreground; DataItem='PlotAxis' (Name='PART_horizontalAxis'); target element is 'Axis' (Name=''); target property is 'Foreground' (type 'SolidColorBrush')
System.Windows.Data Error: 1 : Cannot create default converter to perform 'two-way' conversions between types 'System.Windows.Media.SolidColorBrush' and 'System.Windows.Media.Brush'. Consider using Converter property of Binding. BindingExpression:Path=Foreground; DataItem='Axis' (Name=''); target element is 'Path' (Name=''); target property is 'Stroke' (type 'Brush')
System.Windows.Data Error: 1 : Cannot create default converter to perform 'two-way' conversions between types 'System.Windows.Media.SolidColorBrush' and 'System.Windows.Media.Brush'. Consider using Converter property of Binding. BindingExpression:Path=Foreground; DataItem='Axis' (Name=''); target element is 'Path' (Name=''); target property is 'Stroke' (type 'Brush')
System.Windows.Data Error: 1 : Cannot create default converter to perform 'two-way' conversions between types 'System.Windows.Media.Brush' and 'System.Windows.Media.SolidColorBrush'. Consider using Converter property of Binding. BindingExpression:Path=Foreground; DataItem='PlotAxis' (Name='PART_verticalAxis'); target element is 'Axis' (Name=''); target property is 'Foreground' (type 'SolidColorBrush')

Fixed by changing Axis.Foreground and AxisGrid.Stroke from "SolidColorBrush" to "Brush", so that these properties can be successfully bound to other "Foreground(type 'Brush')" properties.

@msftclas
Copy link

msftclas commented Nov 10, 2018

CLA assistant check
All CLA requirements met.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants