Exemplo n.º 1
0
		public void Visit(RootNode node, INode parentNode)
		{
			action(node, parentNode);
		}
Exemplo n.º 2
0
		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);
		}
Exemplo n.º 3
0
		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);
		}
Exemplo n.º 4
0
		public void Visit(RootNode node, INode parentNode)
		{
		}
Exemplo n.º 5
0
		public void Visit(RootNode node, INode parentNode)
		{
			var ns = new NameScope();
			node.Namescope = ns;
			scopes[node] = ns;
		}
Exemplo n.º 6
0
		public static void ParseXaml(RootNode rootNode, XmlReader reader)
		{
			var attributes = ParseXamlAttributes(reader);
			rootNode.Properties.AddRange(attributes);
			ParseXamlElementFor(rootNode, reader);
		}
Exemplo n.º 7
0
 public void Visit(RootNode node, INode parentNode)
 {
 }
Exemplo n.º 8
0
 public void Visit(RootNode node, INode parentNode)
 => _scopes[node] = node.Namescope = new NameScope();
Exemplo n.º 9
0
 public void Visit(RootNode node, INode parentNode)
 {
     Visit((ElementNode)node, parentNode);
 }