dotnet / dotnet/wpf

Potentially spurious warning 'IsChecked' property not found on 'object' ''RibbonMenuButton' ?

Open
#1,473 1 comment 1 reaction 0 assignees View on GitHub
.NET Framework
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

It seems like will throw a spurious warning at runtime. I've noticed this and also found it discussed here:

https://stackoverflow.com/questions/10462167/wpf-and-ribboncontrolslibrary-throws-a-bindingexpression-path-error-without-even

My own example is:

System.Windows.Data Warning: 40 : BindingExpression path error: 'IsChecked' property not found on 'object' '' RibbonMenuButton' (Name='NavRotate2DButton')'. BindingExpression:Path=IsChecked; DataItem='RibbonMenuButton' (Name='NavRotate2DButton'); target element is 'RibbonToggleButton' (Name='PART_ToggleButton'); target property is 'NoTarget' (type 'Object')

I'm not use any IsChecked properly with the NavRotate2DButton object in my code.

_This issue has been moved from https://developercommunity.visualstudio.com/content/problem/665487/potentially-spurious-warning-ischecked-property-no.html
VSTS ticketId: 956791_
_These are the original issue comments:_
(no comments)
_These are the original issue solutions:_
(no solutions)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.