1 write to Name
Microsoft.Maui.Controls.Xaml (1)
XamlNode.cs (1)
50 Name = name;
40 references to Name
Microsoft.Maui.Controls.Build.Tasks (22)
CompiledConverters\BindablePropertyConverter.cs (12)
38 && ((node.Parent as ElementNode)?.XmlType.Name == nameof(Setter) 39 || (node.Parent as ElementNode)?.XmlType.Name == nameof(PropertyCondition))) 42 (parent.XmlType.Name == nameof(Trigger) 43 || parent.XmlType.Name == nameof(DataTrigger) 44 || parent.XmlType.Name == nameof(MultiTrigger) 45 || parent.XmlType.Name == nameof(Style))) 49 else if (parent.XmlType.NamespaceUri == XamlParser.MauiUri && parent.XmlType.Name == nameof(VisualState)) 54 else if ((node.Parent as ElementNode)?.XmlType.NamespaceUri == XamlParser.MauiUri && (node.Parent as ElementNode)?.XmlType.Name == nameof(Trigger)) 89 if (!(parent.Parent is IElementNode target) || target.XmlType.NamespaceUri != XamlParser.MauiUri || target.XmlType.Name != nameof(VisualStateGroup)) 95 && (target.Parent as IElementNode)?.XmlType.Name == nameof(VisualStateGroupList))) 101 if (target.XmlType.NamespaceUri == XamlParser.MauiUri && target.XmlType.Name == nameof(Setter)) 104 return target.XmlType.Name;
CompiledMarkupExtensions\StaticResourceExtension.cs (2)
73 && resourceDictionary.XmlType.Name == "ResourceDictionary") 79 && irn3.XmlType.Name != "OnPlatform"
CreateObjectVisitor.cs (2)
366 var n = node.XmlType.Name.Split(':')[1]; 371 var name = node.XmlType.Name.Split(':')[1];
SetNamescopesAndRegisterNamesVisitor.cs (2)
94 static bool IsStyle(INode node, INode parentNode) => parentNode is ElementNode pnode && pnode.XmlType.Name == "Style"; 96 static bool IsVisualStateGroupList(ElementNode node) => node != null && node.XmlType.Name == "VisualStateGroup" && node.Parent is IListNode;
SetPropertiesVisitor.cs (3)
170 throw new BuildException(BuildExceptionCode.ContentPropertyAttributeMissing, node, null, ((IElementNode)parentNode).XmlType.Name); 467 if (n.XmlType.Name == nameof(Microsoft.Maui.Controls.DataTemplate) 491 && enode.XmlType.Name == nameof(Microsoft.Maui.Controls.Xaml.NullExtension))
XmlTypeExtensions.cs (1)
97 throw new BuildException(BuildExceptionCode.TypeResolution, xmlInfo, null, $"{xmlType.NamespaceUri}:{xmlType.Name}");
Microsoft.Maui.Controls.Xaml (18)
ApplyPropertiesVisitor.cs (1)
184 xpe = xpe ?? new XamlParseException($"Cannot set the content of {((IElementNode)parentNode).XmlType.Name} as it doesn't have a ContentPropertyAttribute", node);
NamescopingVisitor.cs (2)
43 static bool IsStyle(INode node, INode parentNode) => (parentNode as ElementNode)?.XmlType.Name == "Style"; 44 static bool IsVisualStateGroupList(ElementNode node) => node?.XmlType.Name == "VisualStateGroup" && node?.Parent is IListNode;
SimplifyOnPlatformVisitor.cs (1)
50 if (node.XmlType.Name == nameof(OnPlatformExtension) && node.XmlType.NamespaceUri == XamlParser.MauiUri)
SimplifyTypeExtensionVisitor.cs (5)
51 static bool IsStyle(XmlType type) => type.Name == nameof(Style) && type.NamespaceUri == XamlParser.MauiUri; 52 static bool IsTrigger(XmlType type) => type.Name == nameof(Trigger) && type.NamespaceUri == XamlParser.MauiUri; 53 static bool IsDataTrigger(XmlType type) => type.Name == nameof(DataTrigger) && type.NamespaceUri == XamlParser.MauiUri; 54 static bool IsMultiTrigger(XmlType type) => type.Name == nameof(MultiTrigger) && type.NamespaceUri == XamlParser.MauiUri; 58 if (node.XmlType.Name == nameof(TypeExtension) && node.XmlType.NamespaceUri == XamlParser.X2009Uri)
XamlLoader.cs (1)
173 if (resources is ElementNode resourcesEN && (resourcesEN.XmlType.NamespaceUri != XamlParser.MauiUri || resourcesEN.XmlType.Name != nameof(ResourceDictionary)))
XamlNode.cs (3)
67 Name == other.Name && 81 hashCode = (hashCode * 397) ^ Name.GetHashCode(StringComparison.Ordinal);
XamlParser.cs (4)
103 (node.XmlType.Name == "DataTemplate" || node.XmlType.Name == "ControlTemplate")) 106 throw new XamlParseException($"Multiple child elements in {node.XmlType.Name}", ((IXmlLineInfo)reader).Clone()); 431 exception = new XamlParseException($"Type {xmlType.Name} not found in xmlns {xmlType.NamespaceUri}", xmlInfo);
XmlTypeXamlExtensions.cs (1)
45 var elementName = xmlType.Name;