<?xml version="1.0" encoding="utf-8"?>
<!--Copyright, Microsoft Corporation, All rights reserved.-->
<Rule Name="XAML"
    DisplayName="XAML Compiler"
    Order="75"
    PageTemplate="tool"
    xmlns="http://schemas.microsoft.com/build/2009/properties"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    >

  <Rule.Categories>
    <Category Name="XamlCompiler"
              DisplayName="XAML Compiler" />
  </Rule.Categories>
  
  <Rule.DataSource>
    <!-- A Page items must be present for this Rule to be active -->
    <DataSource Persistence="ProjectFile"
                ItemType="Page"
                HasConfigurationCondition="true" />
  </Rule.DataSource>

  <StringProperty Name="SuppressXamlWarnings"
                  DisplayName="Suppressed XAML Warnings"
                  Description="XAML Compiler warning to suppress.  List as decimal integer values separated with ';'."
                  Category="XamlCompiler">
        <StringProperty.DataSource>
            <!-- But don't store the value on the Page Item, store it as a global property -->
            <DataSource Persistence="ProjectFile"
                        ItemType=""
                        HasConfigurationCondition="true" />
        </StringProperty.DataSource>
  </StringProperty>

 </Rule>
