Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

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

$
0
0

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>

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

Thanks


aniruddha


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>