XAML: Dependency property field missing
I have extracted a control template from a 3rd party control. R# 6.1 EAP (C#) is reporting an "Dependency property field missing" error although the property does exist.
XAML snippet:
<ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}" />
Decompiled with ILSpy, the property definition looks like this:
[Browsable(false), EditorBrowsable(EditorBrowsableState.Never)]
public override DataTemplate ContentTemplate
{
get
{
return base.ContentTemplate;
}
set
{
}
}
Is reporting an error here correct with respect to the attributes, or should R# accept the property definition as valid?
Regards,
Mathias
Please sign in to leave a comment.