예제 #1
0
파일: XamlParser.cs 프로젝트: shana/moon
		public XamlParser (XamlContext context) 
		{
			Context = context;
			DefaultXmlns = String.Empty;
			Xmlns = new Dictionary<string,string> ();
			IgnorableXmlns = new List<string> ();
			NameScope = new NameScope ();

			NameScope.Temporary = true;
		}
예제 #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);
		}
예제 #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);
		}
예제 #4
0
파일: XamlParser.cs 프로젝트: dfr0/moon
		public XamlParser (XamlContext context) 
		{
			Context = context;
			NameScope = new NameScope ();
		}
예제 #5
0
파일: XamlContext.cs 프로젝트: dfr0/moon
		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>();
		}
예제 #6
0
파일: XamlContext.cs 프로젝트: shana/moon
		internal XamlContext (XamlContext parent, List<DependencyObject> resources, FrameworkTemplate template)
		{
			Parent = parent;
			Resources = resources;
			Template = template;
		}
예제 #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);
		}