Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF Label text alignment

$
0
0

Hi,

I've dropped a 200px label on to my 800px Window with the text "TEST".

However, when I set the alignment to left/right this sets the alignment of the label not the text inside the label.

<Label x:Name="lblExample" Content="TEST" HorizontalAlignment="Right" Margin="90,100,0,0" VerticalAlignment="Top" Width="200" Foreground="White" FontSize="16"/>

How do I set the alignment of the text inside a label?

Thanks


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>