超炫酷的WPF实现Loading控件效果

2019-12-30 11:11:34刘景俊
  •   <DoubleAnimation 
  • Storyboard.TargetName = "p3"  Storyboard.TargetProperty = "(UIElement.RenderTransform).(RotateTransform.Angle)" 
  • From = "{StaticResource ParticleBeginAngle1}"  To = "{StaticResource ParticleEndAngle1}" 
  • BeginTime = "{StaticResource ParticleBeginTime1}"  Duration = "{StaticResource ParticleDuration1}"/> 
  • <DoubleAnimation  Storyboard.TargetName = "p3" 
  • Storyboard.TargetProperty = "(UIElement.RenderTransform).(RotateTransform.Angle)"  From = "{StaticResource ParticleBeginAngle2}" 
  • To = "{StaticResource ParticleEndAngle2}"  BeginTime = "{StaticResource ParticleBeginTime2}" 
  • Duration = "{StaticResource ParticleDuration2}"/>  <DoubleAnimation 
  • Storyboard.TargetName = "p3"  Storyboard.TargetProperty = "(UIElement.RenderTransform).(RotateTransform.Angle)" 
  • From = "{StaticResource ParticleBeginAngle3}"  To = "{StaticResource ParticleEndAngle3}" 
  • BeginTime = "{StaticResource ParticleBeginTime3}"  Duration = "{StaticResource ParticleDuration3}"/> 
  • </Storyboard>  </BeginStoryboard> 
  •   <BeginStoryboard> 
  • <Storyboard   
  • BeginTime = "{StaticResource StoryBoardBeginTimeP4}"  Duration = "{StaticResource StoryBoardDuration}" 
  • RepeatBehavior = "Forever">   
  • <DoubleAnimation  Storyboard.TargetName = "p4" 
  • Storyboard.TargetProperty = "(UIElement.RenderTransform).(RotateTransform.Angle)"  From = "{StaticResource ParticleBeginAngle1}" 
  • To = "{StaticResource ParticleEndAngle1}"  BeginTime = "{StaticResource ParticleBeginTime1}" 
  • Duration = "{StaticResource ParticleDuration1}"/>  <DoubleAnimation 
  • Storyboard.TargetName = "p4"  Storyboard.TargetProperty = "(UIElement.RenderTransform).(RotateTransform.Angle)"