Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm using <separator> to separate horizontal window.
now i want to create a vertical separation line.
so please suggest me.
Posted

1 solution

You might look for a grid splitter like this?
C#
<Window x:Class="WpfApplication9.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Button Content="Button" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click"/>
        <Button Content="Button" HorizontalAlignment="Left" Margin="10,37,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click_1"/>
        <GridSplitter Width="5" IsEnabled="False"></GridSplitter>
    </Grid>
</Window>

If IsEnabled is set to "true" you can move the grid splitter and change
the proportions of the grid.

Detailed information on grid splitter can be found here:
http://wpf.2000things.com/tag/gridsplitter/
 
Share this answer
 
v2
Comments
J{0}Y 31-Jan-15 5:48am    
i want a vertical line under gridcolumn then what can i do ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900