1 write to Context
Microsoft.Maui.Controls.Xaml (1)
FillResourceDictionariesVisitor.cs (1)
16 public FillResourceDictionariesVisitor(HydrationContext context) => Context = context;
14 references to Context
Microsoft.Maui.Controls.Xaml (14)
FillResourceDictionariesVisitor.cs (14)
19 Dictionary<INode, object> Values => Context.Values; 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)) 33 node.Accept(new ApplyPropertiesVisitor(Context, stopOnResourceDictionary: false), parentNode); 42 if (!Values.TryGetValue(node, out var value) && Context.ExceptionHandler != null) 46 if (typeof(ResourceDictionary).IsAssignableFrom(Context.Types[node]) && node.TryGetPropertyName(parentNode, out XmlName propertyName)) 52 ApplyPropertiesVisitor.SetPropertyValue(source, propertyName, value, Context.RootElement, node, Context, node); 59 && Context.Types.TryGetValue((IElementNode)parentNode, out var parentType) 62 node.Accept(new ApplyPropertiesVisitor(Context, stopOnResourceDictionary: false), parentNode); 64 && typeof(ResourceDictionary).IsAssignableFrom(Context.Types[((IElementNode)parentNode.Parent)]) 66 node.Accept(new ApplyPropertiesVisitor(Context, stopOnResourceDictionary: false), parentNode); 82 && Context.Types.TryGetValue((IElementNode)parentNode, out var parentType) 87 && typeof(ResourceDictionary).IsAssignableFrom(Context.Types[((IElementNode)parentNode.Parent)])