1 implementation of XmlType
Microsoft.Maui.Controls.Xaml (1)
XamlNode.cs (1)
171 public XmlType XmlType { get; }
30 references to XmlType
Microsoft.Maui.Controls.Build.Tasks (24)
CompiledConverters\BindablePropertyConverter.cs (14)
41 if (parent.XmlType.NamespaceUri == XamlParser.MauiUri && 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)) 89 if (!(parent.Parent is IElementNode target) || target.XmlType.NamespaceUri != XamlParser.MauiUri || target.XmlType.Name != nameof(VisualStateGroup)) 94 || ((target.Parent as IElementNode)?.XmlType.NamespaceUri == XamlParser.MauiUri 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 (4)
73 && resourceDictionary.XmlType.Name == "ResourceDictionary") 79 && irn3.XmlType.Name != "OnPlatform" 116 var parentType = module.ImportReference((node.Parent as IElementNode).XmlType.GetTypeReference(context.Cache, module, (IXmlLineInfo)node)); 173 var parentType = module.ImportReference(parentNode.XmlType.GetTypeReference(context.Cache, module, (IXmlLineInfo)node));
CreateObjectVisitor.cs (2)
366 var n = node.XmlType.Name.Split(':')[1]; 371 var name = node.XmlType.Name.Split(':')[1];
SetPropertiesVisitor.cs (4)
170 throw new BuildException(BuildExceptionCode.ContentPropertyAttributeMissing, node, null, ((IElementNode)parentNode).XmlType.Name); 467 if (n.XmlType.Name == nameof(Microsoft.Maui.Controls.DataTemplate) 468 && n.XmlType.NamespaceUri == XamlParser.MauiUri) 597 && parentNode.XmlType.TryGetTypeReference(context.Cache, module, (IXmlLineInfo)node, out TypeReference parentTypeRef)
Microsoft.Maui.Controls.Xaml (6)
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);
XamlParser.cs (4)
102 else if (node.XmlType.NamespaceUri == MauiUri && 103 (node.XmlType.Name == "DataTemplate" || node.XmlType.Name == "ControlTemplate")) 106 throw new XamlParseException($"Multiple child elements in {node.XmlType.Name}", ((IXmlLineInfo)reader).Clone());
XamlServiceProvider.cs (1)
331 && XamlParser.GetElementType(parent.XmlType,