private unsafe bool cb_import_xaml_xmlns (XamlCallbackData *data, string xmlns, ref MoonError error)
{
try {
if (!ValidateXmlns (xmlns))
return false;
Application.ImportXamlNamespace (xmlns);
return true;
} catch (Exception ex) {
Console.WriteLine ("Application::ImportXamlNamespace ({0}) threw an exception:\n{1}", xmlns, ex);
error = new MoonError (ex);
return false;
}
}