Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 4, 2024. It is now read-only.

Minor bugfix in data binding #28

Open
L1ttleFlyyy wants to merge 1 commit into microsoft:master
base: master
Choose a base branch
Loading
from L1ttleFlyyy:master

Conversation

@L1ttleFlyyy
Copy link

@L1ttleFlyyy L1ttleFlyyy commented Nov 10, 2018

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.

silven, Umar-Turdiev, marha333, and EdenShin reacted with thumbs up emoji marha333 and EdenShin reacted with heart emoji
Copy link

msftclas commented Nov 10, 2018
edited
Loading

CLA assistant check
All CLA requirements met.

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /