Prints the visual tree structure to a string for debugging.
public static string PrintTree(this Visual root, int maxDepth = 2147483647)
The root visual to print from.
Maximum depth to print (default is unlimited).