"255 depth levels ought to be enough for anybody." - Bill Gates, 2010
Some WPF customers have complained about this help that WPF tries to provide:
Layout recursion reached allowed limit to avoid stack overflow: '255'
We saw the feedback via this forum post, and thought we fixed it in 3.5sp1. I posted in April 2008 that the fix was coming…By the time we got feedback that we didn’t quite fix it (we only changed 1 constant in the code, and there were several necessary), 3.5sp1 was already virtually out the door.
The good news is that we’ve fixed this in WPF 4 to allow a new higher limit of 4096.
That said, use this newfound power responsibly, you really should be trying to keep your visual count down. We realize that some scenarios were blocked by the original limit. We hope this makes things better for you.
Please continue to be vocal with feedback!