public override object CreateObjectFromFile(string path, bool createNamescope) { XamlParser p = new XamlParser() { CreateNameScope = createNamescope, ResourceBase = resourceBase, }; return(p.ParseFile(path)); }