This topic has not yet been rated - Rate this topic

Comments cannot contain two adjacent hyphens '--'

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Comments cannot contain two adjacent hyphens '--'. Two adjacent hyphens '--' must be followed by a close angle bracket character '>' to terminate the comment.

A XAML comment block cannot contain the character sequence "--". For more information, see XML Comments [XML Standards].

Error ID: XAML0106

Note Note

This error message also applies to the Silverlight Designer.

To correct this error

  • Remove any instances of the character sequence "--" from the comment block.

The following code example shows how to comment a line of XAML code correctly.


    <!-- This line is a valid XAML comment. -->
    <!-- 
This is a valid 
XAML comment block. 
-->


Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.