July 07, 2012

Cannot set XYZ attribute value


Error:
Cannot set Name attribute value 'gridColumn01' on element 'GridColumn'. 'GridColumn' is under the scope of element 'AmaEntityGridView', which already had a name registered when it was defined in another scope.



Solution:
Change Name or other field to x:Name or other prefix like below

Example 1:
WRONG: <x:A Name="xyz"
SOLUTION: <x:A x:Name="xyz"

Example 2:
WRONG: <dxg:GridColumn Name="xyz"
SOLUTION: <dxg:GridColumn dxg:GridColumn.Name="xyz"