private static XamlSchemaContext GetSchemaContext ()
{
Assembly[] referenceAssemblies = new Assembly[] { typeof(System.Xaml.XamlLanguage).Assembly, typeof(MarkupExtension).Assembly };
XamlSchemaContextSettings settings = new XamlSchemaContextSettings {
SupportMarkupExtensionsWithDuplicateArity = true
};
return new XamlSchemaContext(referenceAssemblies, settings);
}