From: tshad on 20 Feb 2010 12:53 I am trying to understand the GridSplitter. If I have the following Grid, it resizes exactly the same whether I have the GridSplitter or not and regardless of what the ResizeBehavior is. I thought the "*" and "auto" determined the resizing behavior? <Grid TextBlock.FontSize="48"> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition Height="250"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="2*"/> <ColumnDefinition Width="auto"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Button Grid.RowSpan="2" Content="2 Rows"/> <GridSplitter Grid.Row="0" Grid.RowSpan="2" Grid.Column="1" Width="8" Background="Black" ResizeBehavior="CurrentAndNext" ResizeDirection="Columns"/> <Button Grid.Column="2" Grid.ColumnSpan="2" Content="2 Columns"/> <Button Grid.Row="1" Grid.Column="2" Content="1,2"/> <Button Grid.Row="1" Grid.Column="3" Content="1,3"/> </Grid> Thanks, Tom
From: Gregory A. Beamer on 20 Feb 2010 21:35 "tshad" <tfs(a)dslextreme.com> wrote in message news:ec$niWlsKHA.732(a)TK2MSFTNGP06.phx.gbl... > I am trying to understand the GridSplitter. > > If I have the following Grid, it resizes exactly the same whether I have > the GridSplitter or not and regardless of what the ResizeBehavior is. This is not a WPF group, it is an ASP.NET group. While you might find an answer here, I would post on the WPF forum: http://social.msdn.microsoft.com/Forums/en/wpf/threads/ -- Peace and Grace, Greg Twitter: @gbworld Blog: http://gregorybeamer.spaces.live.com ************************************************ | Think outside the box! | ************************************************
|
Pages: 1 Prev: stackpanel and border on bottom Next: Binding custom objects to dropdown |