A Choice element cannot follow a Fallback element in an AlternateContent element
A Choice element cannot follow a Fallback element in an AlternateContent element. Move the Fallback element to be last.
The child elements of an AlternateContent element must appear in the following order:
Choice elements
Fallback element
This error is raised when the file is a valid XML document, but is not a well-formed XAML document.
Error ID: XAML0410
Note
This error message also applies to the Silverlight Designer.
To correct this error
- Move the Fallback element to be the last child of the AlternateContent element.
Example
The following code example shows how to define fallback content with the AlternateContent element. The Fallback element follows the Choice element.
<DockPanel xmlns:mc='https://schemas.openxmlformats.org/markup-compatibility/2006'
xmlns:v1='assembly.v1'
xmlns:v2='assembly.v2'
mc:Ignorable="v2" >
<mc:AlternateContent>
<mc:Choice Requires='v2'>
<Button Content='V2' />
</mc:Choice>
<mc:Fallback>
<Button Content='V1'/>
</mc:Fallback>
</mc:AlternateContent>
</DockPanel>