58 instantiations of XmlName
Microsoft.Maui.Controls.Build.Tasks (28)
CompiledConverters\BindablePropertyConverter.cs (2)
81 => ((node as ElementNode).Properties[new XmlName("", "TargetType")] as ValueNode)?.Value as string; 102 return ((target?.Parent as IElementNode)?.Properties[new XmlName("", "TargetType")] as ValueNode)?.Value as string;
CompiledMarkupExtensions\ArrayExtension.cs (1)
13 var typeNode = node.Properties[new XmlName("", "Type")] as IElementNode;
CompiledMarkupExtensions\DataTemplateExtension.cs (1)
17 var name = new XmlName("", "TypeName");
CompiledMarkupExtensions\StaticExtension.cs (1)
16 if (!node.Properties.TryGetValue(new XmlName("", "Member"), out ntype))
CompiledMarkupExtensions\StaticResourceExtension.cs (2)
17 var name = new XmlName("", "Key"); 29 if (n.Properties.TryGetValue(new XmlName(XamlParser.MauiUri, "Resources"), out var resourcesNode))
CompiledMarkupExtensions\TypeExtension.cs (1)
17 var name = new XmlName("", "TypeName");
CompiledValueProviders\SetterValueProvider.cs (3)
15 if (!((IElementNode)node).Properties.TryGetValue(new XmlName("", "Value"), out valueNode) && 16 !((IElementNode)node).Properties.TryGetValue(new XmlName(XamlParser.MauiUri, "Value"), out valueNode) && 20 var bpNode = ((ValueNode)((IElementNode)node).Properties[new XmlName("", "Property")]);
CompiledValueProviders\StyleSheetProvider.cs (4)
17 ((IElementNode)node).Properties.TryGetValue(new XmlName("", "Source"), out sourceNode); 19 ((IElementNode)node).Properties.TryGetValue(new XmlName(XamlParser.MauiUri, "Source"), out sourceNode); 22 if (!((IElementNode)node).Properties.TryGetValue(new XmlName("", "Style"), out styleNode) && 23 !((IElementNode)node).Properties.TryGetValue(new XmlName(XamlParser.MauiUri, "Style"), out styleNode) &&
CreateObjectVisitor.cs (4)
286 if (!enode.Properties.ContainsKey(new XmlName("", propname))) 303 var node = enode.Properties[new XmlName("", propname)]; 304 if (!enode.SkipProperties.Contains(new XmlName("", propname))) 305 enode.SkipProperties.Add(new XmlName("", propname));
ExpandMarkupsVisitor.cs (2)
140 var contentname = new XmlName(null, null); 169 childname = XamlParser.ParsePropertyName(new XmlName(
SetPropertiesVisitor.cs (7)
63 propertyName = new XmlName(((IElementNode)parentNode).NamespaceURI, contentProperty); 146 var name = new XmlName(node.NamespaceURI, contentProperty); 269 var typeNode = node.Properties[new XmlName("", "Type")]; 304 bool hasSource = node.Properties.ContainsKey(new XmlName("", "Source")); 434 if (!node.Properties.TryGetValue(new XmlName("", "Path"), out INode pathNode) && node.CollectionItems.Any()) 437 if (!node.Properties.TryGetValue(new XmlName("", "Mode"), out INode modeNode) 1889 Context.IL.Append(SetPropertyValue(variableDefinition, new XmlName("", runTimeName), node, Context, node));
Microsoft.Maui.Controls.Xaml (30)
ApplyPropertiesVisitor.cs (3)
75 var name = new XmlName(((ElementNode)parentNode).NamespaceURI, contentProperty); 155 var name = new XmlName(node.NamespaceURI, contentProperty); 840 SetPropertyValue(source, new XmlName("", runTimeName.Name), value, Context.RootElement, node, Context, node);
CreateValuesVisitor.cs (2)
219 if (!node.Properties.ContainsKey(new XmlName("", propname))) 317 var name = new XmlName("", propname);
ExpandMarkupsVisitor.cs (2)
138 var contentname = new XmlName(null, null); 160 childname = XamlParser.ParsePropertyName(new XmlName(
RemoveDuplicateDesignNodes.cs (2)
32 var k = new XmlName(XamlParser.MauiUri, key.LocalName); 36 node.Properties.Remove(new XmlName("", k.LocalName));
SimplifyOnPlatformVisitor.cs (2)
52 if (node.Properties.TryGetValue(new XmlName("", Target), out INode targetNode) 53 || node.Properties.TryGetValue(new XmlName("", nameof(OnPlatformExtension.Default)), out targetNode))
SimplifyTypeExtensionVisitor.cs (2)
43 => propertyName == new XmlName("", "TargetType") 60 XmlName typeNameXmlName = new("", "TypeName");
XamlLoader.cs (1)
165 if (!rNode.Properties.TryGetValue(new XmlName(XamlParser.MauiUri, "Resources"), out var resources))
XamlParser.cs (7)
75 name = new XmlName(reader.NamespaceURI, reader.Name.Substring(elementName.Length + 1)); 77 name = new XmlName(reader.NamespaceURI, reader.LocalName); 223 var propertyName = ParsePropertyName(new XmlName(namespaceUri, reader.LocalName)); 252 return new XmlName(null, null); 255 return new XmlName(null, null); 273 return new XmlName(null, null); 280 return new XmlName(null, null);
XmlName.cs (9)
10 public static readonly XmlName _CreateContent = new XmlName("_", "CreateContent"); 11 public static readonly XmlName xKey = new XmlName("x", "Key"); 12 public static readonly XmlName xName = new XmlName("x", "Name"); 13 public static readonly XmlName xTypeArguments = new XmlName("x", "TypeArguments"); 14 public static readonly XmlName xArguments = new XmlName("x", "Arguments"); 15 public static readonly XmlName xFactoryMethod = new XmlName("x", "FactoryMethod"); 16 public static readonly XmlName xDataType = new XmlName("x", "DataType"); 17 public static readonly XmlName Empty = new XmlName(); 39 => Equals(new XmlName(namespaceUri, localName));
198 references to XmlName
Microsoft.Maui.Controls.Build.Tasks (74)
CompiledMarkupExtensions\DataTemplateExtension.cs (1)
17 var name = new XmlName("", "TypeName");
CompiledMarkupExtensions\StaticResourceExtension.cs (8)
17 var name = new XmlName("", "Key"); 33 && irn.Properties.TryGetValue(XmlName.xKey, out INode xKeyNode) 54 && irn2.Properties.TryGetValue(XmlName.xKey, out INode xKeyNode2) 78 && irn3.Properties.TryGetValue(XmlName.xKey, out INode xKeyNode3) 113 XmlName propertyName = XmlName.Empty; 159 SetPropertiesVisitor.TryGetPropertyName(node, node.Parent, out var propertyName); 171 if (node.Parent is IElementNode parentNode && propertyName != XmlName.Empty)
CompiledMarkupExtensions\TypeExtension.cs (1)
17 var name = new XmlName("", "TypeName");
CreateObjectVisitor.cs (10)
132 if (node.Properties.ContainsKey(XmlName.xArguments) && !node.Properties.ContainsKey(XmlName.xFactoryMethod)) 142 else if (node.Properties.ContainsKey(XmlName.xFactoryMethod)) 144 var factoryMethod = (string)(node.Properties[XmlName.xFactoryMethod] as ValueNode).Value; 233 else if (ctorInfo != null && node.Properties.ContainsKey(XmlName.xArguments) && 234 !node.Properties.ContainsKey(XmlName.xFactoryMethod) && ctorInfo.MatchXArguments(node, typeref, Module, Context)) 272 XmlName name; 326 if (!enode.Properties.ContainsKey(XmlName.xArguments)) 330 var node = enode.Properties[XmlName.xArguments] as ElementNode; 333 var list = enode.Properties[XmlName.xArguments] as ListNode;
ExpandMarkupsVisitor.cs (13)
11 readonly IList<XmlName> _skips = new List<XmlName> 13 XmlName.xKey, 14 XmlName.xTypeArguments, 15 XmlName.xFactoryMethod, 16 XmlName.xName, 42 if (!TryGetProperyName(markupnode, parentNode, out XmlName propertyName)) 68 public static bool TryGetProperyName(INode node, INode parentNode, out XmlName name) 70 name = default(XmlName); 139 var childnodes = new List<(XmlName, INode)>(); 140 var contentname = new XmlName(null, null); 159 XmlName childname; 177 if (childname == XmlName.xTypeArguments)
MethodDefinitionExtensions.cs (3)
11 if (!enode.Properties.ContainsKey(XmlName.xArguments)) 15 var node = enode.Properties[XmlName.xArguments] as ElementNode; 19 var list = enode.Properties[XmlName.xArguments] as ListNode;
SetFieldVisitor.cs (1)
61 if (parentElement != null && parentElement.Properties.TryGetValue(XmlName.xName, out xNameNode) && xNameNode == node)
SetNamescopesAndRegisterNamesVisitor.cs (2)
92 => parentNode is IElementNode parentElement && parentElement.Properties.TryGetValue(XmlName._CreateContent, out INode createContent) && createContent == node; 99 => parentNode is IElementNode parentElement && parentElement.Properties.TryGetValue(XmlName.xName, out INode xNameNode) && xNameNode == node;
SetPropertiesVisitor.cs (30)
18 static readonly IList<XmlName> skips = 20 XmlName.xKey, 21 XmlName.xTypeArguments, 22 XmlName.xArguments, 23 XmlName.xFactoryMethod, 24 XmlName.xName, 25 XmlName.xDataType 54 if (!TryGetPropertyName(node, parentNode, out XmlName propertyName)) 85 XmlName propertyName = XmlName.Empty; 95 if ((propertyName != XmlName.Empty || TryGetPropertyName(node, parentNode, out propertyName)) && skips.Contains(propertyName)) 98 if (propertyName == XmlName._CreateContent) 112 if (parentNode is IElementNode && propertyName != XmlName.Empty) 125 if (propertyName != XmlName.Empty) 146 var name = new XmlName(node.NamespaceURI, contentProperty); 218 public static bool TryGetPropertyName(INode node, INode parentNode, out XmlName name) 220 name = default(XmlName); 458 if (n != skipNode && n.Properties.TryGetValue(XmlName.xDataType, out dataTypeNode)) 588 && node.TryGetPropertyName(parentNode, out var propertyName) 596 && node.TryGetPropertyName(parentNode, out XmlName propertyName) 1102 public static IEnumerable<Instruction> SetPropertyValue(VariableDefinition parent, XmlName propertyName, INode valueNode, ILContext context, IXmlLineInfo iXmlLineInfo) 1134 public static IEnumerable<Instruction> GetPropertyValue(VariableDefinition parent, XmlName propertyName, ILContext context, IXmlLineInfo lineInfo, out TypeReference propertyType) 1609 static bool CanAdd(VariableDefinition parent, XmlName propertyName, INode valueNode, IXmlLineInfo lineInfo, ILContext context) 1651 if (node.Properties.ContainsKey(XmlName.xKey)) 1653 var valueNode = node.Properties[XmlName.xKey] as ValueNode ?? throw new BuildException(XKeyNotLiteral, lineInfo, null); 1672 static IEnumerable<Instruction> Add(VariableDefinition parent, XmlName propertyName, INode node, IXmlLineInfo iXmlLineInfo, ILContext context) 1704 if (node.Properties.ContainsKey(XmlName.xKey)) 1707 var valueNode = node.Properties[XmlName.xKey] as ValueNode ?? throw new BuildException(XKeyNotLiteral, lineInfo, null); 1873 bool TrySetRuntimeName(XmlName propertyName, VariableDefinition variableDefinition, ValueNode node) 1875 if (propertyName != XmlName.xName)
SetResourcesVisitor.cs (5)
40 XmlName propertyName; 54 && !((IElementNode)parentNode).Properties.ContainsKey(XmlName.xKey)) 58 && !((IElementNode)parentNode.Parent).Properties.ContainsKey(XmlName.xKey)) 86 && !((IElementNode)parentNode).Properties.ContainsKey(XmlName.xKey)) 90 && !((IElementNode)parentNode.Parent).Properties.ContainsKey(XmlName.xKey))
Microsoft.Maui.Controls.Xaml (124)
ApplyPropertiesVisitor.cs (32)
24 public static readonly IList<XmlName> Skips = new List<XmlName> { 25 XmlName.xKey, 26 XmlName.xTypeArguments, 27 XmlName.xArguments, 28 XmlName.xFactoryMethod, 29 XmlName.xName, 30 XmlName.xDataType 57 if (node.TryGetPropertyName(parentNode, out XmlName propertyName)) 75 var name = new XmlName(((ElementNode)parentNode).NamespaceURI, contentProperty); 91 if (node.TryGetPropertyName(parentNode, out XmlName propertyName) && propertyName == XmlName._CreateContent) 102 propertyName = XmlName.Empty; 115 if (propertyName != XmlName.Empty || node.TryGetPropertyName(parentNode, out propertyName)) 132 ProvideValue(ref value, node, source, XmlName.Empty); 138 && node.Properties.ContainsKey(XmlName.xKey)) 140 if ((node.Properties[XmlName.xKey] is ValueNode valueNode)) 155 var name = new XmlName(node.NamespaceURI, contentProperty); 194 ProvideValue(ref value, node, source, XmlName.Empty); 200 if (xpe == null && node.Properties.ContainsKey(XmlName.xKey)) 202 if ((node.Properties[XmlName.xKey] is ValueNode valueNode)) 257 void ProvideValue(ref object value, ElementNode node, object source, XmlName propertyName) 269 if (serviceProvider != null && propertyName != XmlName.Empty) 330 static object GetTargetProperty(object xamlelement, XmlName propertyName, object rootElement, IXmlLineInfo lineInfo) 346 public static void SetPropertyValue(object xamlelement, XmlName propertyName, object value, object rootElement, INode node, HydrationContext context, IXmlLineInfo lineInfo) 349 var xKey = node is IElementNode eNode && eNode.Properties.ContainsKey(XmlName.xKey) ? ((ValueNode)eNode.Properties[XmlName.xKey]).Value as string : null; 368 public static bool TrySetPropertyValue(object element, XmlName propertyName, string xKey, object value, object rootElement, IXmlLineInfo lineInfo, IServiceProvider serviceProvider, out Exception xpe) 431 public static object GetPropertyValue(object xamlElement, XmlName propertyName, object rootElement, IXmlLineInfo lineInfo, out Exception xpe, out object targetProperty) 732 static bool TryAddToProperty(object element, XmlName propertyName, object value, string xKey, IXmlLineInfo lineInfo, IServiceProvider serviceProvider, object rootElement, out Exception exception) 831 bool TrySetRuntimeName(XmlName propertyName, object source, object value, ValueNode node) 833 if (propertyName != XmlName.xName)
CreateValuesVisitor.cs (10)
67 else if (node.Properties.ContainsKey(XmlName.xArguments) || node.Properties.ContainsKey(XmlName.xFactoryMethod)) 151 if (!node.Properties.TryGetValue(XmlName.xKey, out INode xKey)) 158 node.Properties.Add(XmlName.xKey, xKey); 198 if (node.TryGetPropertyName(parentNode, out XmlName name)) 245 if (!node.Properties.ContainsKey(XmlName.xFactoryMethod)) 251 var factoryMethod = ((string)((ValueNode)node.Properties[XmlName.xFactoryMethod]).Value); 286 if (!enode.Properties.ContainsKey(XmlName.xArguments)) 288 var node = enode.Properties[XmlName.xArguments]; 317 var name = new XmlName("", propname);
ExpandMarkupsVisitor.cs (12)
17 public static readonly IList<XmlName> Skips = new List<XmlName> 19 XmlName.xKey, 20 XmlName.xTypeArguments, 21 XmlName.xFactoryMethod, 22 XmlName.xName, 23 XmlName.xDataType 47 XmlName propertyName; 137 var childnodes = new List<(XmlName, INode)>(); 138 var contentname = new XmlName(null, null); 150 XmlName childname; 168 if (childname == XmlName.xTypeArguments)
FillResourceDictionariesVisitor.cs (5)
46 if (typeof(ResourceDictionary).IsAssignableFrom(Context.Types[node]) && node.TryGetPropertyName(parentNode, out XmlName propertyName)) 61 && !((IElementNode)parentNode).Properties.ContainsKey(XmlName.xKey)) 65 && !((IElementNode)parentNode.Parent).Properties.ContainsKey(XmlName.xKey)) 84 && !((IElementNode)parentNode).Properties.ContainsKey(XmlName.xKey)) 88 && !((IElementNode)parentNode.Parent).Properties.ContainsKey(XmlName.xKey))
NamescopingVisitor.cs (1)
37 && parentElement.Properties.TryGetValue(XmlName._CreateContent, out var createContent)
NodeExtensions.cs (1)
5 public static bool TryGetPropertyName(this INode node, INode parentNode, out XmlName name)
PruneIgnoredNodesVisitor.cs (1)
23 var propertyName = propertyKvp.Key;
RegisterXNamesVisitor.cs (1)
76 => parentNode is IElementNode parentElement && parentElement.Properties.TryGetValue(XmlName.xName, out INode xNameNode) && xNameNode == node;
RemoveDuplicateDesignNodes.cs (2)
29 var key = props[i].Key; 32 var k = new XmlName(XamlParser.MauiUri, key.LocalName);
SimplifyOnPlatformVisitor.cs (3)
55 if (!node.TryGetPropertyName(parentNode, out XmlName name)) 62 if (!node.TryGetPropertyName(parentNode, out XmlName name)) 69 if (!node.TryGetPropertyName(parentNode, out XmlName name))
SimplifyTypeExtensionVisitor.cs (6)
32 if (IsValueOfXDataTypeOrTargetType(node, parentNode, out XmlName propertyName) 38 static bool IsValueOfXDataTypeOrTargetType(ElementNode node, INode parentNode, out XmlName propertyName) 42 static bool IsTargetTypePropertyOfMauiType(INode parentNode, XmlName propertyName) 50 static bool IsXDataType(XmlName name) => name == XmlName.xDataType; 60 XmlName typeNameXmlName = new("", "TypeName");
XamlNode.cs (9)
27 Dictionary<XmlName, INode> Properties { get; } 28 List<XmlName> SkipProperties { get; } 161 Properties = new Dictionary<XmlName, INode>(); 162 SkipProperties = new List<XmlName>(); 168 public Dictionary<XmlName, INode> Properties { get; } 169 public List<XmlName> SkipProperties { get; } 196 parentElement.Properties.TryGetValue(XmlName._CreateContent, out INode createContent) && 218 foreach (var p in SkipProperties) 258 public XmlName XmlName { get; set; }
XamlParser.cs (23)
73 XmlName name; 94 if (node.Properties.ContainsKey(XmlName.xArguments)) 99 node.Properties.Add(XmlName.xArguments, prop); 105 if (node.Properties.ContainsKey(XmlName._CreateContent)) 110 node.Properties.Add(XmlName._CreateContent, prop); 197 static IList<XmlType> GetTypeArguments(IList<KeyValuePair<XmlName, INode>> attributes) 199 return attributes.Any(kvp => kvp.Key == XmlName.xTypeArguments) 200 ? ((ValueNode)attributes.First(kvp => kvp.Key == XmlName.xTypeArguments).Value).Value as IList<XmlType> 204 static IList<KeyValuePair<XmlName, INode>> ParseXamlAttributes(XmlReader reader, out IList<KeyValuePair<string, string>> xmlns) 207 var attributes = new List<KeyValuePair<XmlName, INode>>(); 223 var propertyName = ParsePropertyName(new XmlName(namespaceUri, reader.LocalName)); 230 if (propertyName == XmlName.xTypeArguments) 234 attributes.Add(new KeyValuePair<XmlName, INode>(propertyName, propertyNode)); 240 public static XmlName ParsePropertyName(XmlName name) 247 return XmlName.xKey; 249 return XmlName.xName; 264 return XmlName.xKey; 266 return XmlName.xName; 268 return XmlName.xTypeArguments; 270 return XmlName.xDataType; 275 return XmlName.xFactoryMethod; 277 return XmlName.xArguments;
XamlServiceProvider.cs (3)
320 if (node.TryGetPropertyName(node.Parent, out XmlName name) 329 if (node.TryGetPropertyName(node.Parent, out XmlName name) 359 if (n != skipNode && n.Properties.TryGetValue(XmlName.xDataType, out dataTypeNode))
XmlName.cs (15)
10 public static readonly XmlName _CreateContent = new XmlName("_", "CreateContent"); 11 public static readonly XmlName xKey = new XmlName("x", "Key"); 12 public static readonly XmlName xName = new XmlName("x", "Name"); 13 public static readonly XmlName xTypeArguments = new XmlName("x", "TypeArguments"); 14 public static readonly XmlName xArguments = new XmlName("x", "Arguments"); 15 public static readonly XmlName xFactoryMethod = new XmlName("x", "FactoryMethod"); 16 public static readonly XmlName xDataType = new XmlName("x", "DataType"); 17 public static readonly XmlName Empty = new XmlName(); 32 if (obj.GetType() != typeof(XmlName)) 34 var other = (XmlName)obj; 61 public static bool operator ==(XmlName x1, XmlName x2) 64 public static bool operator !=(XmlName x1, XmlName x2)