I would like to set a minimum width and height on my split panes so that, when added or resized, they will never be a tiny square etc.
However, when I do this, on dragging the panes around, I occasionally get an ArgumentException with message "Width/Height must be non-negative". Oddly, it doesn't happen all the time. Other times, weird stuff happens - like the panels get cut off.
Anyone else seen anything like this?
I can't say that I've seen that occur but if you can post a callstack, we may be able to use that to ensure that we don't cause that exception.
Attached is a sample solution in which it happens consistently. Try dragging and docking pane1 to any edge of the main window (without resizing the window).
If that doesn't work, the stack trace is in a text file in the attached solution.
Obviously, this doesn't reflect my actual project - it's pretty clear here that the exception gets thrown because initially there isn't enough space in the window to contain all the panes at their min width/height. Even that being the case, the exception that gets thrown crashes the application - obviously undesirable - so any input from you guys would be appreciated.
By the way, I'm using 9.1.20091.2075.
Thanks for your time.