我正在开发具有TextBox组件的WPF应用程序。
我的文本框的插入符号有问题。似乎,根据其TextBox自身的位置,插入号在某些特定位置消失了
插入符号显示:
插入符号消失:
插入符返回:
该TextBox样式很简单:
<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>
Run Code Online (Sandbox Code Playgroud)
我什至尝试将字体设置Courier New为等宽字体。