15 references to Prefix
PresentationFramework (1)
System\Windows\Markup\WpfXamlLoader.cs (1)
223stack.CurrentFrame.XmlnsDictionary.Add(xamlReader.Namespace.Prefix, xamlReader.Namespace.Namespace);
System.Xaml (13)
System\Xaml\Context\ObjectWriterContext.cs (1)
252if (keys.Add(namespaceDeclaration.Prefix))
System\Xaml\Context\XamlParserContext.cs (1)
91if (keys.Add(namespaceDeclaration.Prefix))
System\Xaml\InfosetObjects\XamlObjectWriter.cs (3)
897if(namespaceDeclaration.Prefix is null) 925string err = SR.Format(SR.NoPropertyInCurrentFrame_NS, namespaceDeclaration.Prefix, 937_context.AddNamespacePrefix(namespaceDeclaration.Prefix, namespaceDeclaration.Namespace);
System\Xaml\XamlObjectReader.cs (3)
2587if (prefixToNamespaceMap.TryGetValue(namespaceDeclaration.Prefix, out ns)) 2597namespaceToPrefixMap.Add(namespaceDeclaration.Namespace, namespaceDeclaration.Prefix); 2598prefixToNamespaceMap.Add(namespaceDeclaration.Prefix, namespaceDeclaration.Namespace);
System\Xaml\XamlXmlWriter.cs (5)
230if (namespaceDeclaration.Prefix is null) 240if (namespaceDeclaration.Prefix == "xml") 959writer.AssignNamespacePrefix(namespaceDeclaration.Namespace, namespaceDeclaration.Prefix); 1018writer.AssignNamespacePrefix(namespaceDeclaration.Namespace, namespaceDeclaration.Prefix); 1252writer.AssignNamespacePrefix(namespaceDeclaration.Namespace, namespaceDeclaration.Prefix);
System.Xaml.Tests (1)
System\Xaml\NamespaceDeclarationTests.cs (1)
19Assert.Equal(prefix, declaration.Prefix);