Wpf GridSplitter usage Sample

Step 1:
add grid xmal

<Grid VerticalAlignment=”Stretch” HorizontalAlignment=”Stretch”>
        <Grid.ColumnDefinitions >
            <ColumnDefinition Width=”*” />
            <ColumnDefinition Width=”*”  />        
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height=”*” />
            <RowDefinition Height=”Auto” />
            <RowDefinition Height=”*” />
        </Grid.RowDefinitions>


Step 2:
add splitter xaml

<GridSplitter 
            ResizeDirection=”Rows” 
            Grid.Column=”0″ 
            Grid.ColumnSpan=”2″ 
            Grid.Row=”1″ 
            Width=”Auto” 
            Height=”3″ 
            HorizontalAlignment=”Stretch” 
            VerticalAlignment=”Stretch” 
            Margin=”0″/>


你可能感兴趣的:(sample)