4 writes to RootElement
Microsoft.Maui.Controls.Xaml (4)
ApplyPropertiesVisitor.cs (1)
790
var context = new HydrationContext { ParentContext = Context, RootAssembly = Context.RootAssembly,
RootElement
= Context.RootElement, ExceptionHandler = Context.ExceptionHandler };
XamlLoader.cs (3)
84
RootElement
= view,
131
visitorContext.
RootElement
= inflatedView as BindableObject;
186
visitorContext.
RootElement
= rootView;
16 references to RootElement
Microsoft.Maui.Controls.Xaml (16)
ApplyPropertiesVisitor.cs (8)
67
SetPropertyValue(source, propertyName, value, Context.
RootElement
, node, Context, node);
80
SetPropertyValue(source, name, value, Context.
RootElement
, node, Context, node);
125
SetPropertyValue(source, propertyName, value, Context.
RootElement
, node, Context, node);
161
SetPropertyValue(source, name, value, Context.
RootElement
, node, Context, node);
208
var collection = GetPropertyValue(source, parentList.XmlName, Context.
RootElement
, parentList, out _, out _) as IEnumerable;
270
((XamlValueTargetProvider)serviceProvider.IProvideValueTarget).TargetProperty = GetTargetProperty(source, propertyName, Context.
RootElement
, node);
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);
CreateValuesVisitor.cs (5)
51
var type = XamlParser.GetElementType(node.XmlType, node, Context.
RootElement
?.GetType().Assembly,
171
var assemblyName = (Context.RootAssembly ?? Context.
RootElement
?.GetType().Assembly)?.GetName().Name;
172
if (assemblyName != null && value != null && !value.GetType().IsValueType && XamlFilePathAttribute.GetFilePathForObject(Context.
RootElement
) is string path)
190
var assemblyName = (Context.RootAssembly ?? Context.
RootElement
.GetType().Assembly)?.GetName().Name;
191
if (rnode.Root != null && !rnode.Root.GetType().IsValueType && XamlFilePathAttribute.GetFilePathForObject(Context.
RootElement
) is string path)
FillResourceDictionariesVisitor.cs (1)
52
ApplyPropertiesVisitor.SetPropertyValue(source, propertyName, value, Context.
RootElement
, node, Context, node);
XamlServiceProvider.cs (2)
27
IRootObjectProvider = new XamlRootObjectProvider(context.
RootElement
);
333
context.
RootElement
.GetType().Assembly, out var xpe) is Type parentType