center text in wpf code example
Example: set text in center wpf
<Button Height="23" HorizontalAlignment="Left" Margin="190,115,0,0" Name="MyButton" VerticalAlignment="Top" Width="75" HorizontalContentAlignment="Stretch">
<TextBlock Text="Shahin" TextAlignment="Center" />
</Button >