I have TextBox with the MaterialDesignOutlinedTextFieldTextBox styles. Now I want to align text in the center of TextBox, But I can't find any option in materialDesign:HintAssist to align hint text.
Please help me, what can I do?
Currently not supported. But you can override the property like this.
<TextBox Style="{StaticResource MaterialDesignOutlinedTextFieldTextBox}"
TextAlignment="Center"
materialDesign:HintAssist.Hint="Hint Text">
<TextBox.Resources>
<Style TargetType="{x:Type materialDesign:SmartHint}">
<Setter Property="HorizontalAlignment" Value="Center"/>
</Style>
</TextBox.Resources>
</TextBox>
Thanks
Most helpful comment
Currently not supported. But you can override the property like this.