@@ -47,11 +47,11 @@ static RadialProgressIndicator() =>
4747 /// <summary>Initializes a new instance of <see cref="RadialProgressIndicator" /></summary>
4848 public RadialProgressIndicator ( )
4949 {
50- _IsListening = false ;
51- _Radius = 0 ;
52- _Center = new ( ) ;
53- _RotationAngle = 0 ;
54- Unloaded += OnUnloaded ;
50+ _IsListening = false ;
51+ _Radius = 0 ;
52+ _Center = new ( ) ;
53+ _RotationAngle = 0 ;
54+ Unloaded += OnUnloaded ;
5555 }
5656
5757 #endregion
@@ -191,7 +191,7 @@ private void OnRendering(object sender, EventArgs e)
191191
192192 var tick = Environment . TickCount ;
193193 _TickCount = tick - _LastTick ;
194- _LastTick = tick ;
194+ _LastTick = tick ;
195195
196196 CreateProgressPath ( _TickCount ) ;
197197 }
@@ -205,7 +205,7 @@ private void CreateProgressPath(int variation)
205205 {
206206 var path_geometry = ( PathGeometry ) _CurrentGeometry . Clone ( ) ;
207207 path_geometry . Transform = new RotateTransform ( _RotationAngle , _Center . X , _Center . Y ) ;
208- _ProgressGeometry = path_geometry . GetFlattenedPathGeometry ( ) ;
208+ _ProgressGeometry = path_geometry . GetFlattenedPathGeometry ( ) ;
209209 }
210210
211211 if ( _BorderGeometry != null )
@@ -239,7 +239,7 @@ private void StartListening()
239239 if ( _IsListening )
240240 return ;
241241
242- _IsListening = true ;
242+ _IsListening = true ;
243243 CompositionTarget . Rendering += OnRendering ;
244244 }
245245
@@ -250,7 +250,7 @@ private void StopListening()
250250 if ( ! _IsListening )
251251 return ;
252252
253- _IsListening = false ;
253+ _IsListening = false ;
254254 CompositionTarget . Rendering -= OnRendering ;
255255 }
256256
@@ -277,8 +277,8 @@ private void OnIsEnabledChanged(bool OldValue, bool NewValue)
277277 {
278278 if ( _IsListening )
279279 StopListening ( ) ;
280- _RotationAngle = 0 ;
281- _CurrentGeometry = null ;
280+ _RotationAngle = 0 ;
281+ _CurrentGeometry = null ;
282282 _ProgressGeometry = null ;
283283 }
284284
@@ -307,7 +307,7 @@ private void OnActiveForegroundChanged(Brush NewValue)
307307 #endregion Property Changes
308308}
309309
310- internal static class GeometryExtensions
310+ file static class GeometryExtensions
311311{
312312 #region Static
313313
@@ -327,7 +327,7 @@ public static double EaseAngle(this double angle)
327327 var sign = Sign ( angle ) ;
328328
329329 var normalized_angle = Abs ( angle ) . Normalize ( ) ;
330- var percentage = normalized_angle / 360 ;
330+ var percentage = normalized_angle / 360 ;
331331
332332 normalized_angle = percentage . EaseInOut ( normalized_angle , 5 , 2 ) ;
333333 normalized_angle = Max ( normalized_angle , 1 ) ;
@@ -387,7 +387,7 @@ public static PathGeometry CreatePath(this Point location, double angle, double
387387
388388 var is_large_arc = angle > __FullCircleInDegrees / 2 ;
389389
390- var arc_point = ConvertRadianToCartesian ( angle , radius ) ;
390+ var arc_point = ConvertRadianToCartesian ( angle , radius ) ;
391391 var inner_arc_point = ConvertRadianToCartesian ( angle , InnerRadius ) ;
392392
393393 var segments = new PathSegmentCollection
@@ -469,8 +469,8 @@ public static Point ConvertRadianToCartesian(this double angle, double radius)
469469 throw new ArgumentOutOfRangeException ( $ "{ nameof ( radius ) } '{ radius } ' must be greater than zero.") ;
470470
471471 var angle_radius = PI / ( __FullCircleInDegrees / 2 ) * ( angle - __FullCircleInDegrees / 4 ) ;
472- var x = radius * Cos ( angle_radius ) ;
473- var y = radius * Sin ( angle_radius ) ;
472+ var x = radius * Cos ( angle_radius ) ;
473+ var y = radius * Sin ( angle_radius ) ;
474474 return new ( x , y ) ;
475475 }
476476
@@ -551,7 +551,7 @@ public static double EaseInOut(this double TimeFraction, double start, double de
551551 #endregion
552552}
553553
554- internal static class DoubleUtil
554+ file static class DoubleUtil
555555{
556556 #region Types
557557
@@ -597,7 +597,7 @@ public static bool AreClose(double value1, double value2)
597597 // ReSharper restore CompareOfFloatsByEqualityOperator
598598
599599 // This computes (|value1-value2| / (|value1| + |value2| + 10.0)) < DoubleEpsilon
600- var eps = ( Abs ( value1 ) + Abs ( value2 ) + 10.0 ) * __DoubleEpsilon ;
600+ var eps = ( Abs ( value1 ) + Abs ( value2 ) + 10.0 ) * __DoubleEpsilon ;
601601 var delta = value1 - value2 ;
602602 return ( - eps < delta ) && ( eps > delta ) ;
603603 }
0 commit comments