TextBox 默认是有边框的,显示效果如下:有一个淡蓝色的边框围绕着

WPF中的TextBox隐藏边框

如果需要隐藏这个边框,则只需要在代码中加上以下代码即可:

 BorderBrush="{x:Null}" BorderThickness="0"

<TextBox Text="Hello" Width="480" TextWrapping="Wrap" IsReadOnly="True"  BorderBrush="{x:Null}" BorderThickness="0"></TextBox>
View Code

相关文章:

  • 2021-12-14
  • 2022-01-24
  • 2022-12-23
  • 2021-12-04
  • 2021-12-20
  • 2022-12-23
  • 2021-12-14
猜你喜欢
  • 2021-07-29
  • 2021-12-14
  • 2022-12-23
  • 2021-08-20
  • 2021-06-27
  • 2021-12-04
相关资源
相似解决方案