I just don't understand why my code doesn't work. And I just want to change only one Button's border, I have seen someone using TargetType="{x:Type Button}"
,It doesn't meet my demand! And the answer in Set CornerRadius on button template explains how to change the CornerRadius, I know how to change the CornerRadius, but I really don't know why my Code doesn't work for only one button.
<Button Content="OK" BorderThickness="1">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="10"/>
</Style>
</Button.Resources>
</Button>