zoukankan      html  css  js  c++  java
  • 简单的动画

     1  <TextBlock Name="lblStyled" Text="Hello, styled world!" FontSize="18" HorizontalAlignment="Center" VerticalAlignment="Center">
     2             <TextBlock.Style>
     3                 <Style TargetType="TextBlock">
     4                     <Style.Triggers>
     5                         <EventTrigger RoutedEvent="MouseEnter">
     6                             <EventTrigger.Actions>
     7                                 <BeginStoryboard>
     8                                     <Storyboard>
     9                                         <DoubleAnimation Duration="0:0:0.300" Storyboard.TargetProperty="FontSize" To="28" />
    10                                     </Storyboard>
    11                                 </BeginStoryboard>
    12                             </EventTrigger.Actions>
    13                         </EventTrigger>
    14                         <EventTrigger RoutedEvent="MouseLeave">
    15                             <EventTrigger.Actions>
    16                                 <BeginStoryboard>
    17                                     <Storyboard>
    18                                         <DoubleAnimation Duration="0:0:0.800" Storyboard.TargetProperty="FontSize" To="18" />
    19                                     </Storyboard>
    20                                 </BeginStoryboard>
    21                             </EventTrigger.Actions>
    22                         </EventTrigger>
    23                     </Style.Triggers>
    24                 </Style>
    25             </TextBlock.Style>
    26         </TextBlock>
  • 相关阅读:
    vue 文件分段上传
    深度clone
    js 导出excel
    js 校验
    设计模式原则
    多态
    数据库sql
    Redis快速入门
    C#中使用Redis学习二 在.NET4.5中使用redis hash操作
    在c#中使用servicestackredis操作redis
  • 原文地址:https://www.cnblogs.com/ants_double/p/5366422.html
Copyright © 2011-2022 走看看