WPF Separator position

Posted by morsanu on Stack Overflow See other posts from Stack Overflow or by morsanu
Published on 2010-04-30T13:00:23Z Indexed on 2010/04/30 13:27 UTC
Read the original article Hit count: 502

Filed under:
|
|

Hey,

I'm using a Separator to draw a vertical line inside a Border. At first this was ok because the line needed to be centered, but now I need to position it at a custom x-position from the left border. Is there a way to do that?

<Border x:Name="border" ClipToBounds="True" Background="White" BorderBrush="Black" BorderThickness="2">
    <Separator BorderBrush="Black" BorderThickness="2">
        <Separator.LayoutTransform>
            <RotateTransform Angle="90" />
        </Separator.LayoutTransform>
    </Separator>
</Border>

© Stack Overflow or respective owner

Related posts about wpf

Related posts about separator