将TextBox的边框设为圆角的,因为TextBox默认的样式中边框就是由Border类型来实现的,

所以只需要真的当前的TextBox的Border修改属性即可,为了不影响界面中别的Border的样式,

所以将修改的样式写在了TextBox的Resources中

<TextBox>

     <TextBox.Resources>
          <Style TargetType="{x:Type Border}">
              <Setter Property="CornerRadius" Value="4"/>
              <Setter Property="BorderBrush" Value="#c1d0dc"/>
           </Style>
     </TextBox.Resources>

</TextBox>

相关文章:

  • 2022-12-23
  • 2021-11-09
  • 2021-10-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-02
  • 2021-06-04
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案