public void Visit(RootNode node, INode parentNode) { action(node, parentNode); }
static void Visit (RootNode rootnode, HydratationContext visitorContext) { rootnode.Accept (new XamlNodeVisitor ((node, parent) => node.Parent = parent), null); //set parents for {StaticResource} rootnode.Accept (new ExpandMarkupsVisitor (visitorContext), null); rootnode.Accept (new NamescopingVisitor (visitorContext), null); //set namescopes for {x:Reference} rootnode.Accept (new CreateValuesVisitor (visitorContext), null); rootnode.Accept (new RegisterXNamesVisitor (visitorContext), null); rootnode.Accept (new FillResourceDictionariesVisitor (visitorContext), null); rootnode.Accept (new ApplyPropertiesVisitor (visitorContext, true), null); }
public void Visit(RootNode node, INode parentNode) { var rnode = (XamlLoader.RuntimeRootNode)node; Values[node] = rnode.Root; Context.Types[node] = rnode.Root.GetType(); var bindableRoot = rnode.Root as BindableObject; if (bindableRoot != null) NameScope.SetNameScope(bindableRoot, node.Namescope); }
public void Visit(RootNode node, INode parentNode) { }
public void Visit(RootNode node, INode parentNode) { var ns = new NameScope(); node.Namescope = ns; scopes[node] = ns; }
public static void ParseXaml(RootNode rootNode, XmlReader reader) { var attributes = ParseXamlAttributes(reader); rootNode.Properties.AddRange(attributes); ParseXamlElementFor(rootNode, reader); }
public void Visit(RootNode node, INode parentNode) => _scopes[node] = node.Namescope = new NameScope();
public void Visit(RootNode node, INode parentNode) { Visit((ElementNode)node, parentNode); }