4
我正在开发一个WPF应用程序,其中包含TextBox
组件。WPF TextBox插入消失
我遇到了文本框的插入符号问题。看来,这取决于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>
我试着甚至设置字体Courier New
是等宽字体,同样的事情。
你有任何事件处理文本更改?无法在简单的wpf应用程序上重现此问题 – CharithJ
不,但在包含'UserControl'的窗口中,我拥有此http://stackoverflow.com/a/19579704/975959以支持多分辨率 –