public XamlParser (XamlContext context) { Context = context; DefaultXmlns = String.Empty; Xmlns = new Dictionary<string,string> (); IgnorableXmlns = new List<string> (); NameScope = new NameScope (); NameScope.Temporary = true; }
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); }
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); }
public XamlParser (XamlContext context) { Context = context; NameScope = new NameScope (); }
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>(); }
internal XamlContext (XamlContext parent, List<DependencyObject> resources, FrameworkTemplate template) { Parent = parent; Resources = resources; Template = template; }
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); }