110,538
社区成员
发帖
与我相关
我的任务
分享
<Style TargetType="{x:Type Button}" x:Key="ConfirmButton">
<Setter Property="FontSize" Value="17"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="VerticalAlignment" Value="Top"/>
<Setter Property="Width" Value="88"/>
<Setter Property="Height" Value="36"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect Color="Black" Direction="-90" ShadowDepth="5" BlurRadius="20" Opacity="0.3" />
</Setter.Value>
</Setter>
<Setter Property="Background">
<Setter.Value>
<LinearGradientBrush StartPoint="0.48,0" EndPoint="0.52,1">
<GradientStop Color="#5a5a5b" Offset="0"/>
<GradientStop Color="#444444" Offset="1"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="Back" CornerRadius="5" BorderThickness="0"
Background="{TemplateBinding Background}">
<Grid>
<ContentPresenter Margin="2" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#434343" />
<Setter Property="Foreground" Value="White"/>
<Setter Property="BorderBrush" Value="#FF3399FF"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background">
<Setter.Value>
<LinearGradientBrush StartPoint="0.48,0" EndPoint="0.52,1">
<GradientStop Color="#3c3d3d" Offset="0"/>
<GradientStop Color="#232323" Offset="1"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="Foreground" Value="#454545"/>
<Setter Property="BorderBrush" Value="#FF3399FF"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>