Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想设置我的文本框的样式,使其像带下划线的区域一样显示。类似于下图...
我将如何做到这一点?
在每个文本框上设置(或使用一般样式..):
BorderBrush="Black" BorderThickness="0,0,0,1" Background="Transparent"
只需在底部放一个边框
<TextBox BorderBrush="Black" BorderThickness="0,0,0,2" HorizontalAlignment="Stretch" Height="40" />