Example #1
0
		public XamlParser (XamlContext context) 
		{
			Context = context;
			DefaultXmlns = String.Empty;
			Xmlns = new Dictionary<string,string> ();
			IgnorableXmlns = new List<string> ();
			NameScope = new NameScope ();

			NameScope.Temporary = true;
		}
Example #2
0
		internal XamlContext (XamlContext parent, List<DependencyObject> resources, FrameworkTemplate template)
		{
			Parent = parent;
			Resources = resources;
			Template = template;

			//
			// Its just not worth the lookup time to try accessing these on the parents, so copy them over.
			//
			DefaultXmlns = parent.DefaultXmlns;
			IgnorableXmlns = new List<string> (parent.IgnorableXmlns);
			Xmlns = new Dictionary<string,string> (parent.Xmlns);
		}
Example #3
0
		internal void SetXamlBuffer (ParseTemplateFunc func, XamlContext context, string xaml)
		{
			Value v = Value.FromObject (context);

			NativeMethods.framework_template_set_xaml_buffer (native, func, ref v, xaml);
		}
Example #4
0
		public XamlParser (XamlContext context) 
		{
			Context = context;
			NameScope = new NameScope ();
		}
Example #5
0
		internal XamlContext (XamlContext parent, object top_element,
							List<DependencyObject> resources,
							FrameworkTemplate template, XamlNode node)
		{
			Parent = parent;
			TopElement = top_element;
			Resources = resources;
			Template = template;
			Node = node;

			//
			// Its just not worth the lookup time to try accessing these on the parents, so copy them over.
			//
			XmlnsCachedTypes = new Dictionary<XmlNsKey, Type>();
		}
Example #6
0
		internal XamlContext (XamlContext parent, List<DependencyObject> resources, FrameworkTemplate template)
		{
			Parent = parent;
			Resources = resources;
			Template = template;
		}
Example #7
0
		internal void SetXamlBuffer (ParseTemplateFunc func, XamlContext context)
		{
			Value v = Value.FromObject (context);
			using (Value vv = v)
				NativeMethods.framework_template_set_xaml_buffer (native, func, ref v, null, true);
		}