1 write to Types
Microsoft.Maui.Controls.Xaml (1)
HydrationContext.cs (1)
12
Types
= new Dictionary<IElementNode, Type>();
17 references to Types
Microsoft.Maui.Controls.Xaml (17)
ApplyPropertiesVisitor.cs (6)
47
public bool IsResourceDictionary(ElementNode node) => Context.
Types
.TryGetValue(node, out var type) && typeof(ResourceDictionary).IsAssignableFrom(type);
72
var contentProperty = GetContentPropertyName(Context.
Types
[parentElement]);
153
&& (contentProperty = GetContentPropertyName(Context.
Types
[parentElement])) != null)
167
&& typeof(IEnumerable).IsAssignableFrom(Context.
Types
[parentElement])
168
&& Context.
Types
[parentElement].GetRuntimeMethods().Any(mi => mi.Name == "Add" && mi.GetParameters().Length == 1))
171
Context.
Types
[parentElement].GetRuntimeMethods().First(mi => mi.Name == "Add" && mi.GetParameters().Length == 1);
CreateValuesVisitor.cs (3)
36
public bool IsResourceDictionary(ElementNode node) => typeof(ResourceDictionary).IsAssignableFrom(Context.
Types
[node]);
62
Context.
Types
[node] = type;
181
Context.
Types
[node] = rnode.Root.GetType();
FillResourceDictionariesVisitor.cs (7)
26
public bool IsResourceDictionary(ElementNode node) => typeof(ResourceDictionary).IsAssignableFrom(Context.
Types
[node]);
30
if (!Context.
Types
.TryGetValue((IElementNode)parentNode, out var type) || !typeof(ResourceDictionary).IsAssignableFrom(type))
46
if (typeof(ResourceDictionary).IsAssignableFrom(Context.
Types
[node]) && node.TryGetPropertyName(parentNode, out XmlName propertyName))
59
&& Context.
Types
.TryGetValue((IElementNode)parentNode, out var parentType)
64
&& typeof(ResourceDictionary).IsAssignableFrom(Context.
Types
[((IElementNode)parentNode.Parent)])
82
&& Context.
Types
.TryGetValue((IElementNode)parentNode, out var parentType)
87
&& typeof(ResourceDictionary).IsAssignableFrom(Context.
Types
[((IElementNode)parentNode.Parent)])
RegisterXNamesVisitor.cs (1)
22
public bool IsResourceDictionary(ElementNode node) => typeof(ResourceDictionary).IsAssignableFrom(Context.
Types
[node]);