WPF中的TextBox隐藏边框
TextBox 默认是有边框的,显示效果如下:有一个淡蓝色的边框围绕着
如果需要隐藏这个边框,则只需要在代码中加上以下代码即可:
BorderBrush="{x:Null}" BorderThickness="0"
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
<TextBox Text="Hello" Width="480" TextWrapping="Wrap" IsReadOnly="True" BorderBrush="{x:Null}" BorderThickness="0"></TextBox>