Im trying to get my button border to fade in and out. I have the effect but its applying it to the whole button and not the border.
App.xamml:
<Style x:Key="PassiveGlow"
BasedOn="{StaticResource GlowingButton}"
TargetType="{x:Type Button}">
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="False">
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation
Storyboard.TargetProperty="Opacity"
From="1.0" To="0.0" Duration="0:0:5"
AutoReverse="True" RepeatBehavior="Forever" />
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
</Trigger>
</Style.Triggers>
</Style>
Button XAML:
<Button x:Name="LoginButton"
Padding="5"
HorizontalAlignment="Left"
Margin="0,10,0,0"
Width="100"
Content="Login"
ToolTipService.ShowDuration="20000"
Click="PasswordButtonClick" TabIndex="2"
Style="{DynamicResource PassiveGlow}">