1 write to Context
Microsoft.Maui.Controls.Xaml (1)
ApplyPropertiesVisitor.cs (1)
35 Context = context;
36 references to Context
Microsoft.Maui.Controls.Xaml (36)
ApplyPropertiesVisitor.cs (36)
39 Dictionary<INode, object> Values => Context.Values; 47 public bool IsResourceDictionary(ElementNode node) => Context.Types.TryGetValue(node, out var type) && typeof(ResourceDictionary).IsAssignableFrom(type); 53 if (!Values.TryGetValue(parentNode, out var source) && Context.ExceptionHandler != null) 67 SetPropertyValue(source, propertyName, value, Context.RootElement, node, Context, node); 72 var contentProperty = GetContentPropertyName(Context.Types[parentElement]); 80 SetPropertyValue(source, name, value, Context.RootElement, node, Context, node); 112 if (!Values.TryGetValue(node, out var value) && Context.ExceptionHandler != null) 122 if (!Values.TryGetValue(parentNode, out var source) && Context.ExceptionHandler != null) 125 SetPropertyValue(source, propertyName, value, Context.RootElement, node, Context, node); 129 if (!Values.TryGetValue(parentNode, out var source) && Context.ExceptionHandler != null) 153 && (contentProperty = GetContentPropertyName(Context.Types[parentElement])) != null) 161 SetPropertyValue(source, name, value, Context.RootElement, node, Context, node); 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); 174 addMethod.Invoke(source, new[] { value.ConvertTo(addMethod.GetParameters()[0].ParameterType, (Func<TypeConverter>)null, new XamlServiceProvider(node, Context), out xpe) }); 185 if (Context.ExceptionHandler != null) 186 Context.ExceptionHandler(xpe); 192 if (!Values.TryGetValue(parentNode.Parent, out var source) && Context.ExceptionHandler != null) 208 var collection = GetPropertyValue(source, parentList.XmlName, Context.RootElement, parentList, out _, out _) as IEnumerable; 222 if (Context.ExceptionHandler != null) 223 Context.ExceptionHandler(xpe); 267 serviceProvider = new XamlServiceProvider(node, Context); 270 ((XamlValueTargetProvider)serviceProvider.IProvideValueTarget).TargetProperty = GetTargetProperty(source, propertyName, Context.RootElement, node); 281 if (Context.ExceptionHandler != null) 282 Context.ExceptionHandler(e); 790 var context = new HydrationContext { ParentContext = Context, RootAssembly = Context.RootAssembly, RootElement = Context.RootElement, ExceptionHandler = Context.ExceptionHandler }; 840 SetPropertyValue(source, new XmlName("", runTimeName.Name), value, Context.RootElement, node, Context, node);