手把手教你 用 wpf 制作metro ProgressRing (原创).docxVIP

  • 11
  • 0
  • 约1.49万字
  • 约 10页
  • 2022-06-30 发布于上海
  • 举报

手把手教你 用 wpf 制作metro ProgressRing (原创).docx

效果图: bolg 地址: /wangrenzhu2011/article/details/7712537 还在羡慕 metro 的 ProgressRing 吗? wpf 也可以拥有 首先说下思路, 一共 6 个点围绕一直圆转,所以需要使用 rotation 动画 并且一直转下去。那么下面的问题就好解决了。 首先是 xaml 部分 我们需要实现旋转动画: 所以要用到这个: [html] view plaincopyprint? DoubleAnimationUsingKeyFrames Storyboard.TargetProperty=(Ellipse.RenderTransform).(TransformGro up.Children)[2].(RotateTransform.Angle) LinearDoubleKeyFrame Value=0 KeyTime=0:0:0/ EasingDoubleKeyFrame Value=90 KeyTime=0:0:0.2 /EasingDoubleKeyFrame EasingDoubleKeyFrame Value=270 KeyTime=0:0:1.6 /EasingDoubleKeyFrame EasingDoubleKeyFrame Value=450 KeyTime=0:0:1.8 /EasingDoubleKeyF

文档评论(0)

1亿VIP精品文档

相关文档