July 22, 2013

member is not valid because it does not have a qualifying type name

Error
'Property Name' member is not valid because it does not have a qualifying type name.


Solution
It's so simple, You must declare Type of property.
Just add the Namespace and class name before properties.

Sample
Before:
<Setter Property="Background" Value="{Binding Background}" />

After:
<Setter Property="Background" Value="{Binding amaControls:amaButton.Background}" />

No comments: