private Size InvokeArrangeOverride (Size finalSize, ref MoonError error)
{
try {
return ArrangeOverride (finalSize);
} catch (Exception ex) {
try {
LayoutInformation.SetLayoutExceptionElement (Dispatcher, this);
error = new MoonError (ex);
} catch (Exception ex2) {
try {
Console.WriteLine ("Leaked exception: {0}", ex2);
} catch {
// Ignore
}
}
}
return new Size ();
}