Я определяю стиль в app.xaml:
<Style x:Key="textBoxCenter" TargetType="{x:Type TextBox}">
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
</Style>
Я использую стиль в window1.xaml:
<TextBox
Style="{StaticResource textBoxCenter}"
Background="BlanchedAlmond" Text="BobbleHead" />
<TextBox
Style="{StaticResource textBoxCenter}"
Background="AliceBlue" Text="WhammyBar" />
Однако горизонтальное выравнивание как в Designer, так и во время выполнения равно "Left", хотя на панели инструментов "Свойства" указано, что это Center