Check out example codes for "wpf label text in center". It will help you in understanding the concepts better.

Code Example 1

<Label HorizontalContentAlignment="Center"/>

Code Example 2

<Button  Height="23" HorizontalAlignment="Left" Margin="190,115,0,0" Name="MyButton" VerticalAlignment="Top" Width="75" HorizontalContentAlignment="Stretch">
    <TextBlock Text="Shahin" TextAlignment="Center" />
</Button >

Learn ReactJs, React Native from akashmittal.com