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

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