示例#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);
		}