I have a window with a grid, 3 panels, and 2 grid spliters. The right/bottom panels have MinWidth/MinHeight set to prevent the spliter from making them hidden, but it is not respecting those values and will make the panels smaller than their respective Min settings.

[BUG] GridSpliter does not respecting MinWidth / MinHeight
lordcornholio
Also, setting MinWidth/MinHeight on the column definitions works for me. I'm sorry that I don't have access to a machine to test it out for you.
Matti Niskasaari
Yes I know about it. I have filed about 20 reports and received a response on 2 which requested information. The last time I checked before PDC none had been closed, other than about 4 that were deferred to a later release. So, the forum/news groups seem to do a better job of bringing issues to the attention of those actually doing the work.
I really miss the old DEC problem tracking system. Every bug report by a customer received a status update as is moved through the system.
tobimat80
Here's the code I was mentioning you should use instead of three columns:
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" MinWidth="100">
<TextBlock>Line one 1</TextBlock>
<TextBlock>Line two 1</TextBlock>
</StackPanel>
<GridSplitter Grid.Column="0" ResizeDirection="Columns"/>
<StackPanel Grid.Column="1" MinWidth="100">
<TextBlock>Line one 2</TextBlock>
<TextBlock>Line two 2</TextBlock>
</StackPanel>
</Grid>
However, like you said, this does not respect MinWidth. Changing the code to this gets your desired output:
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" MinWidth="100"/>
<ColumnDefinition Width="*" MinWidth="100"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0">
<TextBlock>Line one 1</TextBlock>
<TextBlock>Line two 1</TextBlock>
</StackPanel>
<GridSplitter Grid.Column="0" ResizeDirection="Columns"/>
<StackPanel Grid.Column="1">
<TextBlock>Line one 2</TextBlock>
<TextBlock>Line two 2</TextBlock>
</StackPanel>
</Grid>
But I agree, this is a bug. You're saying you've already submitted it
Tim Wright
Can you post the simplified XAML that is causing the problem. I have an idea what may be going on here, but need more information on how you our using Grid.
Phillip
Schmidty6060
But, thanks for the pointer. Setting MinWidth on the column works in my code as well. The GridSplitter appears to be designed to support my 3 column case just fine. There is a constant explicitly for the behavior I want, and this way I do not have to modify the elements in the ajoining columns to make room for the splitter.
In my application the contents of the columns are dynamic, so i will need to update the column minimum width when changing the column contents.
Oli Green
<Page xmlns="http://schemas.microsoft.com/winfx/avalon/2005" xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005" >
<Grid>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<StackPanel Grid.Column="0" MinWidth="100">
<TextBlock>Line one 1</TextBlock>
<TextBlock>Line two 1</TextBlock>
</StackPanel>
<GridSplitter Grid.Column="1" ResizeDirection="Columns" ResizeBehavior="PreviousAndNext"/>
<StackPanel Grid.Column="2" MinWidth="100">
<TextBlock>Line one 2</TextBlock>
<TextBlock>Line two 2</TextBlock>
</StackPanel>
</Grid>
</Page>
Rajat Solanki
Thanks,
Karsten
DavidAtPgMensys
Phillip