Beispiel #1
0
        // Token: 0x060064F9 RID: 25849 RVA: 0x001C52F0 File Offset: 0x001C34F0
        internal static string DumpLayoutAndVisualTreeToString(string tagName, Visual root)
        {
            StringWriter  stringWriter  = new StringWriter(CultureInfo.InvariantCulture);
            XmlTextWriter xmlTextWriter = new XmlTextWriter(stringWriter);

            xmlTextWriter.Formatting  = Formatting.Indented;
            xmlTextWriter.Indentation = 2;
            LayoutDump.DumpLayoutAndVisualTree(xmlTextWriter, tagName, root);
            xmlTextWriter.Flush();
            xmlTextWriter.Close();
            return(stringWriter.ToString());
        }