Alterar a espessura da borda do botão em wpf?
Por que a espessura da borda do botão não muda?
Se eu alterar a espessura da borda para 1 ou 100, não importa. É o mesmo. Eu gostaria de mudar isso usandoEstilo, nãoModelo personalizado.
<Window x:Class="GUI.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Window.Resources>
<Style x:Key="newYellowButton" TargetType="{x:Type Button}">
<Setter Property="Width" Value="100"/>
<Setter Property="Height" Value="100"/>
<Setter Property="Background">
<Setter.Value>
<RadialGradientBrush Center="0.5,0.5" GradientOrigin="0.5,0.5" RadiusX="0.5" RadiusY="0.5" SpreadMethod="Pad" ColorInterpolationMode="SRgbLinearInterpolation">
<GradientStop Color="#FFEEEE3B" Offset="0.5" />
<GradientStop Color="#FFF0E49A" Offset="1" />
</RadialGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="BorderThickness" Value="9"/>
<Setter Property="BorderBrush" Value="Blue" />
<Setter Property="Padding" Value="-4"/>
</Style>
</Window.Resources>
<Grid>
<Button Style="{StaticResource newYellowButton}" Content="Ok"/>
</Grid>