这是一个操作提示动画,一个小手在屏幕上按照一个弧形来回运动

<Window x:Class="LZRichMediaWall.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:LocWindow="clr-namespace:LZRichMediaWall.UIControls"
xmlns:childControls="clr-namespace:LZRichMediaWall.UIControls.ChildControls"
Title="MainWindow" WindowState="Maximized" AllowsTransparency="True" WindowStyle="None"> <Window.Resources>
<PathGeometry x:Key="path">
<PathFigure StartPoint="0,100">
<PathFigure.Segments>
<PathSegmentCollection>
<ArcSegment Size="100,80" IsLargeArc="True" SweepDirection="CounterClockwise" Point="600,100" />
</PathSegmentCollection>
</PathFigure.Segments>
</PathFigure>
</PathGeometry>
</Window.Resources> <Window.Triggers>
<EventTrigger RoutedEvent="Window.Loaded">
<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimationUsingPath Storyboard.TargetName="tipGd"
Storyboard.TargetProperty="(Canvas.Left)"
PathGeometry="{StaticResource path}"
Duration="0:0:5" RepeatBehavior="Forever" Source="X" AutoReverse="True" />
<DoubleAnimationUsingPath Storyboard.TargetName="tipGd"
Storyboard.TargetProperty="(Canvas.Top)"
PathGeometry="{StaticResource path}"
Duration="0:0:5" RepeatBehavior="Forever" Source="Y" AutoReverse="True" />
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</Window.Triggers>
<Grid x:Name="main_Gd" Background="Black">
<Canvas x:Name="animat_Cvs" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="-650,0,0,500" Visibility="Collapsed">
<Path Stroke="Transparent" StrokeThickness="" Data="{StaticResource path}" Canvas.Top="" Canvas.Left="">
</Path>
<Grid x:Name="tipGd" Height="" Width="" Visibility="Visible" MouseLeftButtonDown="TipGd_OnMouseLeftButtonDown">
<!--<Image Height="" Width="" Margin="0,-100,-30,0" Source="/LZRichMediaWall;component/Images/点我.png"></Image>-->
<!--<Image x:Name="quan" Height="" Width="" Source="/LZRichMediaWall;component/Images/圈.png">
<Image.Triggers>
<EventTrigger RoutedEvent="UserControl.Loaded">
<BeginStoryboard>
<Storyboard x:Name="storyB" RepeatBehavior="Forever" AutoReverse="True">
<DoubleAnimation From="0.0" To="1.0" Duration="0:0:0.5" Storyboard.TargetName="quan" Storyboard.TargetProperty="Opacity"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Image.Triggers>
</Image>-->
<Image x:Name="show" Height="" Width="" Margin="0,0,-5,-60" Source="/LZRichMediaWall;component/Images/手.png"></Image>
</Grid>
<Label x:Name="textTip" Height="" Width="" Content="单 指 滑 动" FontSize="" Foreground="White"
VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Canvas.Left="" Canvas.Top="">
<Label.Triggers>
<EventTrigger RoutedEvent="UserControl.Loaded">
<BeginStoryboard>
<Storyboard x:Name="storyB" RepeatBehavior="Forever" AutoReverse="True">
<DoubleAnimation From="0.0" To="1.0" Duration="0:0:1" Storyboard.TargetName="textTip" Storyboard.TargetProperty="Opacity"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Label.Triggers>
</Label>
</Canvas>
</Grid>
</Window>

最新文章

  1. 张高兴的 UWP 开发笔记:横向 ListView
  2. linux下mysql安装、目录结构、配置
  3. MvvmLight 绑定
  4. Facade模式和Mediator模式
  5. C#中dynamic的正确用法 以及 typeof(DynamicSample).GetMethod(&quot;Add&quot;);
  6. vc2005中没有classwizard这个命令
  7. javascript 学习笔记之模块化编程
  8. socket编程原理
  9. 在ubuntu上安装k-vim
  10. C# 使用 USB转串 接收数据 问题
  11. 如何通过 HSB 颜色模式构建夜间模式
  12. Android 启动优化
  13. Springboot 系列(十一)使用 Mybatis(自动生成插件) 访问数据库
  14. [转] 如何设置双网卡同时连接内网外网_bpao_新浪博客
  15. Android-textview图文混排(网络图片)
  16. Fantasy of a Summation LightOJ - 1213 (快速幂)
  17. Cannot resolve reference to bean &#39;sqlSessionFactory&#39; while setting bean
  18. oj2894(贝尔曼福特模板)
  19. Python之坐标轴刻度细化、坐标轴设置、标题图例添加
  20. Quartz_2_简单编程式任务调度使用(CronTrigger)

热门文章

  1. setcookie 之 我见
  2. (三)u-boot2013.01.01 for TQ210:《mkconfig分析》
  3. 教您如何检查oracle死锁,决解死锁
  4. javaweb学习总结二十四(servlet经常用到的对象)
  5. Jira安装部署
  6. codeforces 675E E. Trains and Statistic(线段树+dp)
  7. iOS小技巧 - 和屏幕等宽的Table分割线
  8. Sharepoint 2013 安装部署系列篇 第三篇 -- 安装和配置网络负载均衡在前端web服务器
  9. Oracle 日期查询
  10. 基于ASP.Net +easyUI框架上传图片,判断格式+实现即时浏览