0

I'm trying to disable the FocusVisualStyle of a newly created textbox. As far as I understand you just need to add: FocusVisualStyle="{x:Null}" but for some reason the border of the textbox is still changing. The full thing is:

<TextBox FocusVisualStyle="{x:Null}" Height="82" HorizontalAlignment="Left" Margin="142,264,0,0" Name="textBox1" VerticalAlignment="Top" Width="169" BorderBrush="Black" />

Did I do something wrong?

4

1 回答 1

0

尝试设置 BorderThickness="0" ,最好在 IsFocused = True 时创建触发器

于 2013-09-12T19:12:45.820 回答