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

2019-12-30 11:11:34刘景俊
  • </Border.RenderTransformOrigin>  <Ellipse Style = "{StaticResource EllipseStyle}"> 
  • <Ellipse.RenderTransform>  <TransformGroup> 
  • <TranslateTransform X = "{StaticResource StartingPointX}" Y = "{StaticResource StartingPointY}"/>  <RotateTransform Angle = "{StaticResource ParticleOriginAngleP1}"/> 
  • </TransformGroup>  </Ellipse.RenderTransform> 
  • </Ellipse>  </Border> 
  • <Border  x:Name = "p2" 
  • Background = "{StaticResource ParticleBackgroundColor}"  Opacity = "{StaticResource ParticleOpacity}"> 
  • <Border.RenderTransform>  <RotateTransform/> 
  • </Border.RenderTransform>  <Border.RenderTransformOrigin> 
  • <Point X = "{StaticResource RotationPointX}" Y = "{StaticResource RotationPointY}"/>  </Border.RenderTransformOrigin> 
  • <Ellipse Style = "{StaticResource EllipseStyle}">  <Ellipse.RenderTransform> 
  • <TransformGroup>  <TranslateTransform X = "{StaticResource StartingPointX}" Y = "{StaticResource StartingPointY}"/> 
  • <RotateTransform Angle = "{StaticResource ParticleOriginAngleP2}"/>  </TransformGroup> 
  • </Ellipse.RenderTransform>  </Ellipse> 
  • </Border>  <Border 
  • x:Name = "p3"  Background = "{StaticResource ParticleBackgroundColor}" 
  • Opacity = "{StaticResource ParticleOpacity}">  <Border.RenderTransform> 
  • <RotateTransform/>  </Border.RenderTransform> 
  • <Border.RenderTransformOrigin>  <Point X = "{StaticResource RotationPointX}" Y = "{StaticResource RotationPointY}"/> 
  • </Border.RenderTransformOrigin>  <Ellipse Style = "{StaticResource EllipseStyle}"> 
  • <Ellipse.RenderTransform>  <TransformGroup> 
  • <TranslateTransform X = "{StaticResource StartingPointX}" Y = "{StaticResource StartingPointY}"/>  <RotateTransform Angle = "{StaticResource ParticleOriginAngleP3}"/>