Add Separator to StackPanel : Separator « Windows Presentation Foundation « C# / CSharp Tutorial






<Window x:Class="Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="193" Width="197">
    <Grid>
        <StackPanel Name="StackPanel1">
            <Button Height="23" Name="Button1">Button</Button>
            <Button Height="23" Name="Button2" Width="Auto">Button</Button>
            <Separator Height="5" Name="Separator1" Width="Auto" />
            <Button Height="23" Name="Button3" >Button</Button>
        </StackPanel>
    </Grid>
</Window>
WPF Add Separator To Stack Panel








24.40.Separator
24.40.1.Add Separator to StackPanelAdd Separator to StackPanel