|Well here is a bit more to my conundrum. I want to create divided panel with two areas for controls. I started with a Grid with three columns. I put a
GridSplitter in the second column, and set the column's width to
"Auto" so its
Width is just the
Width of the splitter.
I want the splitter to be able to resize the left and right columns, so I set the splitter's
PreviousAndNext. Also I want to be able to completely minimize the left column, but I want the right column always to be at least 200 pixels. For the
Width property of the left column I set it to 130, and the
Width property of the last column to
* and its
MinWidth property to 200.
When I run the window I can move the
GridSplitter left, and it will move to the left side of the
DockWindow, and stop there. When I move it to the right though, it will move off the screen pushing the whole column out of view.
Here is the XAML for it:
<ColumnDefinition Width="130" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" MinWidth="200" />
<GridSplitter Grid.Column="1" Width="3" ResizeBehavior="PreviousAndNext" />
What can I do to enable the features I want, and to prevent the right column from completely leaving the Window?