WPF之跳动字体链接
来源:互联网 发布:守望传输数据遇到问题 编辑:程序博客网 时间:2024/05/17 20:27
1引用资源
<Storyboard x:Key="logoAyStory" RepeatBehavior="Forever">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="textBlock">
<EasingDoubleKeyFrame KeyTime="0" Value="0"/>
<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="-9"/>
<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="textBlock1">
<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="-1.5"/>
<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="-9"/>
<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="0"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="textBlock2">
<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="-1.333"/>
<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="-9"/>
<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="0"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="textBlock3">
<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="-9"/>
<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
<EasingDoubleKeyFrame KeyTime="0:0:3" Value="0"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<EventTrigger RoutedEvent="FrameworkElement.Loaded">
<BeginStoryboard x:Name="logoAyStory_BeginStoryboard" Storyboard="{StaticResource logoAyStory}"/>
<BeginStoryboard x:Name="logoAyStory_BeginStoryboard1" Storyboard="{StaticResource logoAyStory1}"/>
</EventTrigger>
2创建
<StackPanel Orientation="Horizontal" Canvas.Left="121" Canvas.Top="40" SnapsToDevicePixels="True" UseLayoutRounding="True" MouseLeftButtonDown="clickLogin_MouseLeftButtonDown" x:Name="clickLogin" Visibility="Hidden">
<TextBlock x:Name="textBlock" TextWrapping="Wrap" Text="点" FontSize="14" Foreground="White" UseLayoutRounding="True" RenderTransformOrigin="0.5,0.5">
<TextBlock.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform/>
<TranslateTransform/>
</TransformGroup>
</TextBlock.RenderTransform>
</TextBlock>
<TextBlock x:Name="textBlock1" TextWrapping="Wrap" Text="我" FontSize="14" Margin="3,0,0,0" UseLayoutRounding="True" Foreground="White" RenderTransformOrigin="0.5,0.5">
<TextBlock.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform/>
<TranslateTransform/>
</TransformGroup>
</TextBlock.RenderTransform>
</TextBlock>
<TextBlock x:Name="textBlock2" TextWrapping="Wrap" Text="登" FontSize="14" Margin="3,0,0,0" UseLayoutRounding="True" Foreground="White" RenderTransformOrigin="0.5,0.5">
<TextBlock.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform/>
<TranslateTransform/>
</TransformGroup>
</TextBlock.RenderTransform>
</TextBlock>
<TextBlock x:Name="textBlock3" TextWrapping="Wrap" Text="陆" FontSize="14" Margin="3,0,0,0" UseLayoutRounding="True" Foreground="White" RenderTransformOrigin="0.5,0.5">
<TextBlock.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform/>
<TranslateTransform/>
</TransformGroup>
</TextBlock.RenderTransform>
</TextBlock>
</StackPanel>
- WPF之跳动字体链接
- [WPF,XAML] 跳动的心
- WPF 字体模糊解决之路
- 让你的TextView字体跳动起来
- android之字体阴影效果 [复制链接]
- wpf编辑字体
- WPF的字体样式
- wpf 字体特效
- WPF 字体设置
- WPF使用图标字体
- WPF之Page介绍(以及Page之间的链接)
- 链接的onclick事件 引起页面的跳动
- a链接为空时,页面跳动的解决办法
- Firefox os 之跳动的小球
- Android_自定义View之跳动的loading
- 【CSS3】动画之跳动的心
- WPF Prism博客链接
- WPF Caliburn博客链接
- 学习大神的“ 最简单的基于FFmpeg的推流器(以推送RTMP为例) ” 心得总结
- 使用Linq、ef查询全表的语句
- 从高考到程序员
- 利用Ubuntu将c++文件生成.so库
- kotlin习惯用法——kotlin官方文档学习
- WPF之跳动字体链接
- Leetcode Unique Paths
- 分布式 Spring Cloud 基于 Spring Boot 开发一整套
- TexLive runs slow on Windows machine, TexLive编译的很慢
- 经验累积
- SpringMVC中文乱码的解决及配置
- QCalendarWidget 样式设置
- 置顶拜读
- centos7安装完mysql之后,开放3306端口,创建数据库并导入.sql文件