將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>