wpf center text code example Example: wpf label text in center <Label HorizontalContentAlignment="Center"/>