I am developing a WPF application with TextBoxcomponents.
I have a problem with text field carriage. It seems that depending on the location of the TextBoxcarriage itself, it disappears in certain places
Carriage Display:

The carriage disappears:

Refund Caret:

The style is TextBoxvery simple:
<Style TargetType="{x:Type TextBox}" x:Key="FormTextBox">
<Setter Property="Width" Value="464"/>
<Setter Property="Height" Value="74"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="FontFamily" Value="Microsoft Sans Serif"/>
<Setter Property="FontSize" Value="43.2"/>
<Setter Property="MaxLength" Value="50"/>
</Style>
I even tried to set the font to Courier New, which is a monospaced font, the same.
source
share