public override object CreateObjectFromFile (string path, bool createNamescope) { XamlParser p = new XamlParser () { CreateNameScope = createNamescope, ResourceBase = resourceBase, }; return p.ParseFile (path); }
public static Value CreateFromFile (string file, bool create_namescope, bool validate_templates) { XamlParser p = new XamlParser () { CreateNameScope = create_namescope, ValidateTemplates = validate_templates, }; object v = p.ParseFile (file); return ObjectToValue (v); }