The comment was terminated incorrectly
TOC
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

The comment was terminated incorrectly

The comment was terminated incorrectly. Comments are terminated with the characters '-->', not '--!>'.

Commented text in XAML must begin with the character sequence "<!--" and end with the sequence "-->". It is a common error to define the end tag with "--!>".

Error ID: XAML0105

To correct this error

  • Ensure that the commented text begins with "<!--" and ends with "-->".

The following code example shows how to add comments to XAML code.

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

Concepts

Other Resources

Show:
© 2016 Microsoft