If you want to comment out a XAML attribute, follow the following scheme to complete this:

  1. Import the Open XML markup compatibility elements:
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  2. Add another xmlns statement mapping a prefix of your choice (like “ignore”) to an URI of your choice. This URI does not need to point to anything on the web. This is just a unique resource identifier.
    xmlns:ignore="http://something.com/ignore"
  3. Use the mc:Ignorable property to set the new prefix as ignorable.
    mc:Ignorable="ignore"

    Note: If you already had one ignorable prefix defined (for example the “d” prefix that Expression Blend and the Visual Studio designer use), no problems. Just add the new prefix to the Ignorable list with a space to separate the prefixes.

    mc:Ignorable="d ignore"

(Source)

Leave a Reply

Your email address will not be published.

*