You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I keep seeing this binding error when running my Ribbon application. How can you get rid of it?
System.Windows.Data Error: 40 : BindingExpression path error: '(Fluent:RibbonProperties.MouseOverBackground)' property not found on 'object' ''RibbonTabItem' (Name='')'. BindingExpression:Path=(Fluent:RibbonProperties.MouseOverBackground); DataItem='RibbonTabItem' (Name=''); target element is 'RibbonTabItem' (Name=''); target property is 'Background' (type 'Brush')
I observed the same when there was "only" .NET 4.5 or 4.6 installed.
Running on a machine having .NET 4.7 installed the error disappears.
In my case that just seemed to be a glitch in the .NET runtime and everything worked as expected regardless of the error.
Do the ribbon tab items have the proper mouse over effect on your machine? If that's the case you can safely ignore that error.
.NET sometimes seems to have problems resolving the attached property binding on the first try and succeeds on the following tries.
That's strange.
I absolutely can't reproduce this and it should work as it's valid xaml...
Any chance you can try this on a different machine with a different .net version?
Ok, i guess i found out what's causing this error.
Not adding Path= to the binding of an attached property sometimes can cause this issue.
Will fix it.
I keep seeing this binding error when running my Ribbon application. How can you get rid of it?
System.Windows.Data Error: 40 : BindingExpression path error: '(Fluent:RibbonProperties.MouseOverBackground)' property not found on 'object' ''RibbonTabItem' (Name='')'. BindingExpression:Path=(Fluent:RibbonProperties.MouseOverBackground); DataItem='RibbonTabItem' (Name=''); target element is 'RibbonTabItem' (Name=''); target property is 'Background' (type 'Brush')
Using these themes:
I tried setting that attached property on my RibbonTabItems, but it didn't help.
Environment
The text was updated successfully, but these errors were encountered: