// Token: 0x06006501 RID: 25857 RVA: 0x001C54F0 File Offset: 0x001C36F0 private static void DumpUIElement(XmlTextWriter writer, UIElement element, Visual parent, bool uiElementsOnly) { writer.WriteStartElement(element.GetType().Name); LayoutDump.DumpSize(writer, "DesiredSize", element.DesiredSize); LayoutDump.DumpSize(writer, "ComputedSize", element.RenderSize); Geometry clip = VisualTreeHelper.GetClip(element); if (clip != null) { LayoutDump.DumpRect(writer, "Clip.Bounds", clip.Bounds); } GeneralTransform generalTransform = element.TransformToAncestor(parent); Point point = new Point(0.0, 0.0); generalTransform.TryTransform(point, out point); if (point.X != 0.0 || point.Y != 0.0) { LayoutDump.DumpPoint(writer, "Position", point); } bool flag = false; Type type = element.GetType(); LayoutDump.DumpCustomUIElement dumpCustomUIElement = null; while (dumpCustomUIElement == null && type != null) { dumpCustomUIElement = (LayoutDump._elementToDumpHandler[type] as LayoutDump.DumpCustomUIElement); type = type.BaseType; } if (dumpCustomUIElement != null) { flag = dumpCustomUIElement(writer, element, uiElementsOnly); } if (!flag) { if (uiElementsOnly) { LayoutDump.DumpUIElementChildren(writer, "Children", element); } else { LayoutDump.DumpVisualChildren(writer, "Children", element); } } writer.WriteEndElement(); }
// Token: 0x060064FE RID: 25854 RVA: 0x001C53F6 File Offset: 0x001C35F6 internal static void AddUIElementDumpHandler(Type type, LayoutDump.DumpCustomUIElement dumper) { LayoutDump._elementToDumpHandler.Add(type, dumper); }