public static object LoadWithInitialTemplateValidation (string xaml)
{
XamlLoader loader = XamlLoader.CreateManagedXamlLoader (Deployment.Current.EntryAssembly, null, Deployment.Current.Surface.Native, PluginHost.Handle);
return loader.CreateObjectFromString (xaml, true, true);
}
}