public ApplyPropertiesVisitor(HydrationContext context, bool stopOnResourceDictionary = false) { Context = context; StopOnResourceDictionary = stopOnResourceDictionary; }
public static void SetPropertyValue(object xamlelement, XmlName propertyName, object value, object rootElement, INode node, HydrationContext context, IXmlLineInfo lineInfo) { var serviceProvider = new XamlServiceProvider(node, context); var xKey = node is IElementNode && ((IElementNode)node).Properties.ContainsKey(XmlName.xKey) ? ((ValueNode)((IElementNode)node).Properties[XmlName.xKey]).Value as string : null; if (TrySetPropertyValue(xamlelement, propertyName, xKey, value, rootElement, lineInfo, serviceProvider, out var xpe)) { return; } if (context.ExceptionHandler != null) { context.ExceptionHandler(xpe); } else { throw xpe; } }
public CreateValuesVisitor(HydrationContext context) { Context = context; }
public FillResourceDictionariesVisitor(HydrationContext context) => Context = context;
public RegisterXNamesVisitor(HydrationContext context) { Context = context; Values = context.Values; }
public ExpandMarkupsVisitor(HydrationContext context) => Context = context;
public NamescopingVisitor(HydrationContext context) { }