rahul ameta

rahul ameta

  • NA
  • 10
  • 27.9k

How to stuck GridSpliter on right side of window same as my

Dec 27 2012 7:15 AM

Hi All,

          I draged gridSpliter Lefi to Right side in explorer window.I want to stuck GridSpliter  on  right side of window.i am  fallowing this code.


-------------------------------------------------------------------------------------------------

 <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="25"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="120" />
            <ColumnDefinition Width="10"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <TreeView Grid.Column="0" Grid.Row="1" MinWidth="100">
            <TreeViewItem Header="Company">
                <TreeViewItem Header="IT"/>              
            </TreeViewItem>
        </TreeView>

        <GridSplitter Width="2" Grid.Column="1" Grid.Row="1"  HorizontalAlignment="Left" Background="Silver"/>

        <ListView  Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1" Margin="3,0,0,0">
            <ListView.View>
                <GridView>
                    <GridViewColumn Header="Name" Width="100"/>
                    <GridViewColumn Header="Company" Width="100"/>
                    <GridViewColumn Header="Joining" Width="100"/>
                </GridView>
            </ListView.View>
        </ListView>
    </Grid>

-------------------------------------------------------------------------------------------------------------------