I am trying to use a GridSplitter that will split between rows in a grid, but I'm having some trouble with it.
I've defined the 'ResizeDirection' attribute of the GridSplitter to be 'rows', but the GridSplitter stays a vertical one instead of becoming a horizontal one.
I created a simple example for showing my problem.
What am I doing wrong?
Instead of changing the ResizeDirection="Rows" you can give a single Row definition.
If you want to define more rows and columns. Tell me the design i will help you out.
If any confusion let me know.
I don't understand your solution, and it doesn't really work.
All I want is 2 rows and a horizontal splitter between them.
(You defined 2 columns, and the splitter doesn't work).
Do you konw how to do what I want?
I didn't really knew the use of grid splitter. But i knew the properties of a grid. so, I went through 1 example and now i am through with it i think this peice of code will definitely work for you. It has two rows with a gridsplitter in between them. And it resizes the row too.
I will create another RowDefinition for the grid splitter like so:
<Grid>
<!-- Create a 3 row Grid -->
<Grid.RowDefinitions>
<!-- Row that contains the ListView. -->
<RowDefinition Height="200" />
<!-- Row that contains the GridSplitter. -->
<RowDefinition Height="Auto" />
<!-- Row that contains the data for the selected section. -->
<RowDefinition Height="*" />
</Grid.RowDefinitions>
Then I will define the GridSplitter and place it in the 2nd row, or row index 1:
<GridSplitter Grid.Row="1" Grid.Column="0"
HorizontalAlignment="Stretch" VerticalAlignment="Center" ResizeBehavior="PreviousAndNext"
Height="5"
Background="DarkGray"/>
</Grid>
Bookmarks