<StackPanel x:Name="stackpanel" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" Height="150" Width="Auto">
<Label x:Name="label0" Padding="0" VerticalAlignment="Center" HorizontalAlignment="Center" VerticalContentAlignment="Center" Height="Auto" HorizontalContentAlignment="Right"></Label>
<Label x:Name="label1" Padding="0" VerticalAlignment="Center" HorizontalAlignment="Center" VerticalContentAlignment="Center" Foreground="Red" Height="Auto" HorizontalContentAlignment="Center"></Label>
<Label x:Name="label2" Padding="0" VerticalAlignment="Center" HorizontalAlignment="Center" VerticalContentAlignment="Center" Height="Auto" HorizontalContentAlignment="Left"></Label>
</StackPanel>
This is the code I am using for now. I want to fix the position of label1 at the center, while label0 and label2 are on the left and right of label1 respectively.
I am at a loss right now.
THanks
No comments:
Post a Comment