<Window.Resources>
 <Storyboard x:Key="OnLoaded" RepeatBehavior="Forever" AutoReverse="True"  >
            <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="btn_Register">
                <EasingColorKeyFrame KeyTime="0:0:1" Value="LightBlue"/>
                <EasingColorKeyFrame KeyTime="0:0:2" Value="LightGreen"/>
            </ColorAnimationUsingKeyFrames>
        </Storyboard>
    </Window.Resources>
    <Window.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <BeginStoryboard  Storyboard="{StaticResource OnLoaded}"/>
        </EventTrigger>
    </Window.Triggers>
<Button
                    Name="btn_Register"
                    Margin="62,26,-60,2"
                    Content="新用户注册"
                    Command="{Binding Path=RegisterCmd}"
Foreground="#FF91B9EA" Grid.Column="2" Width="Auto" FontWeight="Bold" FontSize="14"/>

 

相关文章:

  • 2021-08-29
  • 2021-11-08
  • 2022-12-23
  • 2021-12-09
  • 2021-08-30
  • 2022-12-23
猜你喜欢
  • 2022-02-13
  • 2022-12-23
  • 2022-02-16
  • 2021-11-02
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案