public override object CreateObjectFromString (string xaml, bool createNamescope, bool validateTemplates)
{
XamlParser p = new XamlParser () {
CreateNameScope = createNamescope,
ValidateTemplates = validateTemplates,
ResourceBase = resourceBase,
};
return p.ParseString (xaml);
}