<Style x:Key="aquaButton" TargetType="Button">
<Setter Property="FontWeight" Value="UltraBold"/>
<Setter Property="Foreground" Value="#B3000000"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid>
<Ellipse x:Name="backgroundGlow" Fill="Yellow"/>
<Ellipse x:Name="outterGlow" Fill="Yellow" Opacity="0">
<Ellipse.BitmapEffect>
<OuterGlowBitmapEffect GlowColor="Aqua" GlowSize="10"/>
</Ellipse.BitmapEffect>
</Ellipse>
<Ellipse x:Name="mainButton" Fill="Blue" Opacity="0.85"/>
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Panel.ZIndex="1"/>
<Ellipse x:Name="shine" Opacity="1">
<Ellipse.Fill>
<LinearGradientBrush StartPoint="0,-0.1" EndPoint="0,1">
<GradientStop Color="White" Offset="0"/>
<GradientStop Color="White" Offset="0.1"/>
<GradientStop Color="Transparent" Offset="0.5"/>
</LinearGradientBrush>
</Ellipse.Fill>
</Ellipse>
<Ellipse x:Name="shadow" Opacity="0.50">
<Ellipse.Fill>
<LinearGradientBrush StartPoint="0,1" EndPoint="0,0">
<GradientStop Color="#FF000337" Offset="0"/>
<GradientStop Color="#FF000337" Offset="0.2"/>
<GradientStop Color="Transparent" Offset="1"/>
</LinearGradientBrush>
</Ellipse.Fill>
</Ellipse>
<Ellipse x:Name="buttonBorder" Stroke="#FF706CEA" StrokeThickness="2"/>
<Ellipse x:Name="buttonOutline" Stroke="DarkBlue" StrokeThickness="1"/>
<Ellipse x:Name="hoverShine" Opacity="0">
<Ellipse.Fill>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="White" Offset="0"/>
<GradientStop Color="White" Offset="0.1"/>
<GradientStop Color="Transparent" Offset="1"/>
</LinearGradientBrush>
</Ellipse.Fill>
</Ellipse>
</Grid>
<ControlTemplate.Triggers>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="Button.IsMouseOver" Value="True"/>
</MultiTrigger.Conditions>
<MultiTrigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="hoverShine"
Storyboard.TargetProperty="Opacity"
To="0.40"
Duration="0:0:0.1"/>
<DoubleAnimation Storyboard.TargetName="outterGlow"
Storyboard.TargetProperty="Opacity"
To="1"
Duration="0:0:0.1"/>
</Storyboard>
</BeginStoryboard>
</MultiTrigger.EnterActions>
<MultiTrigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="hoverShine"
Storyboard.TargetProperty="Opacity"
To="0"
Duration="0:0:0.25"/>
<DoubleAnimation Storyboard.TargetName="outterGlow"
Storyboard.TargetProperty="Opacity"
To="0"
Duration="0:0:0.25"/>
</Storyboard>
</BeginStoryboard>
</MultiTrigger.ExitActions>
</MultiTrigger>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="Button.IsMouseOver" Value="True"/>
<Condition Property="Button.IsPressed" Value="True"/>
</MultiTrigger.Conditions>
<Setter TargetName="shine" Property="Opacity" Value="0.85"/>
<Setter TargetName="shadow" Property="Opacity" Value="0.85"/>
<MultiTrigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="hoverShine"
Storyboard.TargetProperty="Opacity"
To="0"
Duration="0:0:0.1"/>
</Storyboard>
</BeginStoryboard>
</MultiTrigger.EnterActions>
<MultiTrigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="hoverShine"
Storyboard.TargetProperty="Opacity"
To="0.40"
Duration="0:0:0.25"/>
</Storyboard>
</BeginStoryboard>
</MultiTrigger.ExitActions>
</MultiTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
|