手把手教你 用 wpf 制作metro ProgressRing 原创Word格式文档下载.docx

上传人:b****1 文档编号:4462945 上传时间:2023-05-03 格式:DOCX 页数:16 大小:23.22KB
下载 相关 举报
手把手教你 用 wpf 制作metro ProgressRing 原创Word格式文档下载.docx_第1页
第1页 / 共16页
手把手教你 用 wpf 制作metro ProgressRing 原创Word格式文档下载.docx_第2页
第2页 / 共16页
手把手教你 用 wpf 制作metro ProgressRing 原创Word格式文档下载.docx_第3页
第3页 / 共16页
手把手教你 用 wpf 制作metro ProgressRing 原创Word格式文档下载.docx_第4页
第4页 / 共16页
手把手教你 用 wpf 制作metro ProgressRing 原创Word格式文档下载.docx_第5页
第5页 / 共16页
手把手教你 用 wpf 制作metro ProgressRing 原创Word格式文档下载.docx_第6页
第6页 / 共16页
手把手教你 用 wpf 制作metro ProgressRing 原创Word格式文档下载.docx_第7页
第7页 / 共16页
手把手教你 用 wpf 制作metro ProgressRing 原创Word格式文档下载.docx_第8页
第8页 / 共16页
手把手教你 用 wpf 制作metro ProgressRing 原创Word格式文档下载.docx_第9页
第9页 / 共16页
手把手教你 用 wpf 制作metro ProgressRing 原创Word格式文档下载.docx_第10页
第10页 / 共16页
手把手教你 用 wpf 制作metro ProgressRing 原创Word格式文档下载.docx_第11页
第11页 / 共16页
手把手教你 用 wpf 制作metro ProgressRing 原创Word格式文档下载.docx_第12页
第12页 / 共16页
手把手教你 用 wpf 制作metro ProgressRing 原创Word格式文档下载.docx_第13页
第13页 / 共16页
手把手教你 用 wpf 制作metro ProgressRing 原创Word格式文档下载.docx_第14页
第14页 / 共16页
手把手教你 用 wpf 制作metro ProgressRing 原创Word格式文档下载.docx_第15页
第15页 / 共16页
手把手教你 用 wpf 制作metro ProgressRing 原创Word格式文档下载.docx_第16页
第16页 / 共16页
亲,该文档总共16页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

手把手教你 用 wpf 制作metro ProgressRing 原创Word格式文档下载.docx

《手把手教你 用 wpf 制作metro ProgressRing 原创Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《手把手教你 用 wpf 制作metro ProgressRing 原创Word格式文档下载.docx(16页珍藏版)》请在冰点文库上搜索。

手把手教你 用 wpf 制作metro ProgressRing 原创Word格式文档下载.docx

<

LinearDoubleKeyFrame 

Value="

0"

KeyTime="

0:

/>

4. 

EasingDoubleKeyFrame 

90"

0.2"

5. 

/EasingDoubleKeyFrame>

6. 

270"

1.6"

7. 

8. 

450"

1.8"

9. 

10. 

630"

3.2"

11. 

720"

3.4"

12. 

13. 

5.0"

14. 

15. 

/DoubleAnimationUsingKeyFrames>

DoubleAnimationUsingKeyFramesStoryboard.TargetProperty="

<

LinearDoubleKeyFrameValue="

KeyTime="

EasingDoubleKeyFrameValue="

上面这一段是单个ellipse的运动轨迹,当然你需要在属性中设置他的中心点值

代码如下:

Ellipse 

x:

Name="

el"

Width="

10"

Height="

Fill="

White"

Canvas.Left="

73"

Canvas.Top="

57"

Ellipse.RenderTransform>

TransformGroup>

ScaleTransform/>

SkewTransform/>

RotateTransform 

CenterX="

-20"

CenterY="

-40"

TranslateTransform/>

/TransformGroup>

/Ellipse.RenderTransform>

/Ellipse>

Ellipsex:

Width="

Height="

Fill="

Canvas.Left="

Canvas.Top="

>

RotateTransformCenterX="

CenterY="

接下来的事情就好办了,我们需要他转1圈就消失结束后也消失,所以需要控制透明度,

Opacity"

1"

EasingDoubleKeyFrame.EasingFunction>

BackEase 

EasingMode="

EaseInOut"

/EasingDoubleKeyFrame.EasingFunction>

3.5"

16. 

EaseOut"

17. 

18. 

19. 

20. 

21. 

BackEaseEasingMode="

最终把一个圆变成多个圆的工作就交给代码了,需要一点点小技巧以下使用.net4.5实现其他版本可以吧Task.Delay替换成Thread.Sleep

UserControl 

xmlns="

xmlns:

x="

mc="

http:

//schemas.openxmlformats.org/markup-compatibility/2006"

d="

i="

local="

clr-namespace:

Transvalue.MetroStyleBusyIndicator"

Class="

Transvalue.MetroStyleBusyIndicator.MetroRotaionIndicator"

mc:

Ignorable="

d"

d:

DesignHeight="

300"

DesignWidth="

UserControl.Resources>

Storyboard 

Key="

Trans"

RepeatBehavior="

Forever"

22. 

23. 

24. 

25. 

26. 

27. 

28. 

29. 

30. 

31. 

32. 

33. 

34. 

35. 

36. 

37. 

38. 

39. 

40. 

41. 

42. 

43. 

44. 

45. 

46. 

47. 

48. 

49. 

/Storyboard>

50. 

/UserControl.Resources>

51. 

Canvas>

52. 

53. 

54. 

55. 

56. 

57. 

58. 

59. 

60. 

61. 

62. 

el2"

Opacity="

63. 

64. 

65. 

66. 

67. 

68. 

69. 

70. 

71. 

72. 

el3"

73. 

74. 

75. 

76. 

77. 

78. 

79. 

80. 

81. 

82. 

el4"

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 求职职场 > 简历

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2