57 references to XamlParser
Microsoft.Maui.Controls.Build.Tasks (20)
CompiledConverters\BindablePropertyConverter.cs (7)
37
if ((node.Parent as ElementNode)?.XmlType.NamespaceUri ==
XamlParser
.MauiUri
41
if (parent.XmlType.NamespaceUri ==
XamlParser
.MauiUri &&
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))
94
|| ((target.Parent as IElementNode)?.XmlType.NamespaceUri ==
XamlParser
.MauiUri
101
if (target.XmlType.NamespaceUri ==
XamlParser
.MauiUri && target.XmlType.Name == nameof(Setter))
CompiledMarkupExtensions\StaticResourceExtension.cs (1)
29
if (n.Properties.TryGetValue(new XmlName(
XamlParser
.MauiUri, "Resources"), out var resourcesNode))
CompiledValueProviders\SetterValueProvider.cs (1)
16
!((IElementNode)node).Properties.TryGetValue(new XmlName(
XamlParser
.MauiUri, "Value"), out valueNode) &&
CompiledValueProviders\StyleSheetProvider.cs (2)
19
((IElementNode)node).Properties.TryGetValue(new XmlName(
XamlParser
.MauiUri, "Source"), out sourceNode);
23
!((IElementNode)node).Properties.TryGetValue(new XmlName(
XamlParser
.MauiUri, "Style"), out styleNode) &&
CreateObjectVisitor.cs (1)
364
if (node.NamespaceURI ==
XamlParser
.X2009Uri)
ExpandMarkupsVisitor.cs (1)
169
childname =
XamlParser
.ParsePropertyName(new XmlName(
SetPropertiesVisitor.cs (3)
74
if (propertyName.Equals(
XamlParser
.McUri, "Ignorable"))
468
&& n.XmlType.NamespaceUri ==
XamlParser
.MauiUri)
490
&& enode.XmlType.NamespaceUri ==
XamlParser
.X2009Uri
XamlTask.cs (4)
58
var xmlType = new XmlType(reader.NamespaceURI, reader.Name,
XamlParser
.GetTypeArguments(reader));
60
XamlParser
.ParseXaml(rootnode, reader);
86
classname = reader.GetAttribute("Class",
XamlParser
.X2009Uri) ??
87
reader.GetAttribute("Class",
XamlParser
.X2006Uri);
Microsoft.Maui.Controls.Xaml (37)
ApplyPropertiesVisitor.cs (2)
65
if (propertyName.Equals(
XamlParser
.McUri, "Ignorable"))
308
elementType =
XamlParser
.GetElementType(new XmlType(namespaceURI, typename, null), lineInfo,
CreateValuesVisitor.cs (2)
51
var type =
XamlParser
.GetElementType(node.XmlType, node, Context.RootElement?.GetType().Assembly,
333
static bool IsXaml2009LanguagePrimitive(IElementNode node) => node.NamespaceURI ==
XamlParser
.X2009Uri;
ExpandMarkupsVisitor.cs (1)
160
childname =
XamlParser
.ParsePropertyName(new XmlName(
Properties\AssemblyInfo.cs (8)
23
[assembly: XmlnsDefinition(Microsoft.Maui.Controls.Xaml.
XamlParser
.MauiUri, "Microsoft.Maui.Controls.Xaml")]
24
[assembly: XmlnsDefinition(Microsoft.Maui.Controls.Xaml.
XamlParser
.MauiDesignUri, "Microsoft.Maui.Controls.Xaml")]
25
[assembly: XmlnsDefinition(Microsoft.Maui.Controls.Xaml.
XamlParser
.X2006Uri, "Microsoft.Maui.Controls.Xaml")]
26
[assembly: XmlnsDefinition(Microsoft.Maui.Controls.Xaml.
XamlParser
.X2006Uri, "System", AssemblyName = "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
27
[assembly: XmlnsDefinition(Microsoft.Maui.Controls.Xaml.
XamlParser
.X2006Uri, "System", AssemblyName = "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
28
[assembly: XmlnsDefinition(Microsoft.Maui.Controls.Xaml.
XamlParser
.X2009Uri, "Microsoft.Maui.Controls.Xaml")]
29
[assembly: XmlnsDefinition(Microsoft.Maui.Controls.Xaml.
XamlParser
.X2009Uri, "System", AssemblyName = "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
30
[assembly: XmlnsDefinition(Microsoft.Maui.Controls.Xaml.
XamlParser
.X2009Uri, "System", AssemblyName = "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
PruneIgnoredNodesVisitor.cs (2)
26
if (!propertyName.Equals(
XamlParser
.McUri, "Ignorable"))
32
if (node.NamespaceResolver.LookupNamespace(prefixes[i]) ==
XamlParser
.MauiDesignUri)
RemoveDuplicateDesignNodes.cs (3)
30
if (key.NamespaceURI !=
XamlParser
.MauiDesignUri)
32
var k = new XmlName(
XamlParser
.MauiUri, key.LocalName);
35
if (node.NamespaceResolver.LookupPrefix(
XamlParser
.MauiUri) == "")
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 (10)
79
XamlParser
.ParseXaml(rootnode, reader);
120
var typeArguments =
XamlParser
.GetTypeArguments(reader);
123
XamlParser
.ParseXaml(rootnode, reader);
163
XamlParser
.ParseXaml(rootNode, reader);
165
if (!rNode.Properties.TryGetValue(new XmlName(
XamlParser
.MauiUri, "Resources"), out var resources))
173
if (resources is ElementNode resourcesEN && (resourcesEN.XmlType.NamespaceUri !=
XamlParser
.MauiUri || resourcesEN.XmlType.Name != nameof(ResourceDictionary)))
175
resources = new ElementNode(new XmlType(
XamlParser
.MauiUri, nameof(ResourceDictionary), null),
XamlParser
.MauiUri, rootNode.NamespaceResolver);
180
resources = new ElementNode(new XmlType(
XamlParser
.MauiUri, nameof(ResourceDictionary), null),
XamlParser
.MauiUri, rootNode.NamespaceResolver);
XamlServiceProvider.cs (3)
30
IXamlTypeResolver = new XamlTypeResolver(node.NamespaceResolver,
XamlParser
.GetElementType, context.RootAssembly);
198
: this(namespaceResolver,
XamlParser
.GetElementType, currentAssembly)
331
&&
XamlParser
.GetElementType(parent.XmlType,