Good, how can I apply a style to a button when the mouse passes over:
This would be my code to apply the style to my button:
<Window.Resources>
<Style TargetType="Button" x:Key="TabButtonFirst">
<Setter Property="Template" >
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border CornerRadius="15,15,15,15" BorderBrush="#D3F2EE" BorderThickness="2,2,2,0" Background="#FF57CDBD" >
<ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
<Border.Style>
<Style TargetType="{x:Type Border}">
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#3A887E"/>
</Trigger>
</Style.Triggers>
</Style>
</Border.Style>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
My button:
<Button x:Name="button1" Style="{StaticResource TabButtonFirst}" Content="INGRESAR" HorizontalAlignment="Left" Margin="54,340,0,0" VerticalAlignment="Top" Width="97" FontFamily="Century Gothic" FontWeight="Bold" Height="25" Foreground="White" BorderThickness="0" RenderTransformOrigin="0.5,0.5" Background="#FFAEF1E8" BorderBrush="#FFF7F7F7"/>