The property '{0}' is set more than once
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
This error occurs when you attempt to assign values to the same property more than one time in the same element declaration.
This error is raised when the file is a well-formed XAML document, but contains one or more type mismatches.
Error ID: XAML0501
Note
This error message also applies to the Silverlight Designer.
To correct this error
- Remove all except one of the property assignments.
Example
The following code example shows how to assign a value to the Content property. Uncomment the second declaration to raise error XAML0501.
<Button Content='OK'></Button>
<!-- Uncomment the following line to raise error XAML0501. -->
<!-- <Button Content='OK'>OK</Button> -->