I've implemented the Attached Behavior Command pattern which compiles and runs fine, but strangely my XAML editor is giving the error:
The attachable property 'Behaviors' was not found in type 'CommandBehaviorCollection'.
in this XAML:
<c:CommandBehaviorCollection.Behaviors>
<c:BehaviorBinding Event="MouseLeftButtonDown"
Command="{Binding PressedLeftButton}"
CommandParameter="MainBorder123"/>
<c:BehaviorBinding Event="MouseRightButtonDown"
Command="{Binding PressedRightButton}"
CommandParameter="MainBorder123"/>
</c:CommandBehaviorCollection.Behaviors>
However, I can compile and run it fine.
I've rebuilt the project, the solution, closed and opened it, but the XAML editor still gives me this error.
Has anyone experienced an incongruity between XAML editor and compiler like this before? Any idea how to make the XAML editor see that there really isn't a problem?