26 instantiations of XmlnsPrefixAttribute
PresentationCore (5)
OtherAssemblyAttrs.cs (5)
36
[assembly: System.Windows.Markup.
XmlnsPrefix
("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "av")]
41
[assembly: System.Windows.Markup.
XmlnsPrefix
("http://schemas.microsoft.com/winfx/2006/xaml", "x")]
52
[assembly: System.Windows.Markup.
XmlnsPrefix
("http://schemas.microsoft.com/xps/2005/06", "xps")]
64
[assembly: System.Windows.Markup.
XmlnsPrefix
("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "wpf")]
76
[assembly: System.Windows.Markup.
XmlnsPrefix
("http://schemas.microsoft.com/netfx/2009/xaml/presentation", "wpf")]
PresentationFramework (5)
OtherAssemblyAttrs.cs (5)
66
[assembly: System.Windows.Markup.
XmlnsPrefix
("http://schemas.microsoft.com/winfx/2006/xaml/presentation", "av")]
79
[assembly: System.Windows.Markup.
XmlnsPrefix
("http://schemas.microsoft.com/netfx/2007/xaml/presentation", "wpf")]
91
[assembly: System.Windows.Markup.
XmlnsPrefix
("http://schemas.microsoft.com/netfx/2009/xaml/presentation", "wpf")]
94
[assembly: System.Windows.Markup.
XmlnsPrefix
("http://schemas.microsoft.com/winfx/2006/xaml", "x")]
105
[assembly: System.Windows.Markup.
XmlnsPrefix
("http://schemas.microsoft.com/xps/2005/06", "metro")]
System.Xaml.Tests (16)
System\Windows\Markup\XmlnsPrefixAttributeTests.cs (3)
15
var attribute = new
XmlnsPrefixAttribute
(xmlNamespace, prefix);
23
Assert.Throws<ArgumentNullException>("xmlNamespace", () => new
XmlnsPrefixAttribute
(null!, "prefix"));
29
Assert.Throws<ArgumentNullException>("prefix", () => new
XmlnsPrefixAttribute
("xmlNamespace", null!));
System\Xaml\XamlSchemaContextTests.cs (13)
148
new
XmlnsPrefixAttribute
("namespace", "prefix"),
149
new
XmlnsPrefixAttribute
("doubleNamespace1", "doublePrefix"),
150
new
XmlnsPrefixAttribute
("doubleNamespace2", "doublePrefix"),
151
new
XmlnsPrefixAttribute
("sameNamespace", "prefix1"),
152
new
XmlnsPrefixAttribute
("sameNamespace", "prefix2"),
153
new
XmlnsPrefixAttribute
("longerAssemblyNamespace", "longerAssemblyPrefix"),
154
new
XmlnsPrefixAttribute
("shorterAssemblyNamespace", "shorterAssemblyPrefix"),
155
new
XmlnsPrefixAttribute
("greaterAssemblyNamespace", "greaterAssemblyPrefix2"),
156
new
XmlnsPrefixAttribute
("lesserAssemblyNamespace", "lesserAssemblyPrefix1")
169
new
XmlnsPrefixAttribute
("longerAssemblyNamespace", "longerAssemblyPrefix2"),
170
new
XmlnsPrefixAttribute
("shorterAssemblyNamespace", "shorterAssemblyPrefi"),
171
new
XmlnsPrefixAttribute
("greaterAssemblyNamespace", "greaterAssemblyPrefix1"),
172
new
XmlnsPrefixAttribute
("lesserAssemblyNamespace", "lesserAssemblyPrefix2"),
15 references to XmlnsPrefixAttribute
PresentationFramework (2)
System\Windows\Markup\Primitives\MarkupWriter.cs (2)
1561
foreach (
XmlnsPrefixAttribute
prefix in assembly.GetCustomAttributes(typeof(
XmlnsPrefixAttribute
), true))
System.Xaml (4)
System\Xaml\MS\Impl\XmlNsInfo.cs (4)
371
if (LooseTypeExtensions.AssemblyQualifiedNameEquals(cad.Constructor.DeclaringType, typeof(
XmlnsPrefixAttribute
)))
381
Attribute[] attributes = Attribute.GetCustomAttributes(assembly, typeof(
XmlnsPrefixAttribute
));
384
XmlnsPrefixAttribute
xmlnsPrefixAttr = (
XmlnsPrefixAttribute
)attr;
System.Xaml.Tests (9)
System\Windows\Markup\XmlnsPrefixAttributeTests.cs (1)
15
var
attribute = new XmlnsPrefixAttribute(xmlNamespace, prefix);
System\Xaml\XamlSchemaContextTests.cs (8)
145
typeof(
XmlnsPrefixAttribute
),
166
typeof(
XmlnsPrefixAttribute
),
191
typeof(
XmlnsPrefixAttribute
).GetConstructors()[0],
206
ConstructorInfo constructor = typeof(
XmlnsPrefixAttribute
).GetConstructors()[0];
324
ConstructorResult = typeof(
XmlnsPrefixAttribute
).GetConstructors()[0],
340
{ typeof(
XmlnsPrefixAttribute
), null }
354
{ typeof(
XmlnsPrefixAttribute
), new object[] { new XmlnsDefinitionAttribute("xmlNamespace", "clrNamespace") } }
368
{ typeof(
XmlnsPrefixAttribute
), new Attribute?[] { null } }