I have written this code:
<ControlTemplate TargetType="Label">
<Grid Height="30" Width="70" x:Name="grid">
<Border>
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"></ContentPresenter>
</Border>
<Separator>
<Separator.Margin>
<Thickness Left="{Binding Path=Width,RelativeSource={RelativeSource AncestorType=Label}}" Top="0" Right="0" Bottom="0"/>
</Separator.Margin>
<Separator.LayoutTransform>
<RotateTransform Angle='120'/>
</Separator.LayoutTransform>
</Separator>
</Grid>
</ControlTemplate>
I want to bind only left margin of separator, but this code gives me error. Any other solution?