更新整理
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 824 B |
@@ -7,7 +7,6 @@ using System.Windows.Shapes;
|
||||
using Point = System.Windows.Point;
|
||||
using Size = System.Windows.Size;
|
||||
|
||||
// ReSharper disable CheckNamespace
|
||||
namespace WPFluent.Controls;
|
||||
|
||||
/// <summary>
|
||||
@@ -57,7 +56,7 @@ public class Arc : Shape
|
||||
|
||||
private void EnsureRootLayout()
|
||||
{
|
||||
if(_rootLayout != null)
|
||||
if (_rootLayout != null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -97,7 +96,7 @@ public class Arc : Shape
|
||||
|
||||
protected override Visual GetVisualChild(int index)
|
||||
{
|
||||
if(index != 0)
|
||||
if (index != 0)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException(nameof(index), "Arc should have only 1 child");
|
||||
}
|
||||
@@ -134,11 +133,11 @@ public class Arc : Shape
|
||||
/// <param name="angle">The angle at which to create the point.</param>
|
||||
protected Point PointAtAngle(double angle)
|
||||
{
|
||||
if(SweepDirection == SweepDirection.Counterclockwise)
|
||||
if (SweepDirection == SweepDirection.Counterclockwise)
|
||||
{
|
||||
angle += 90;
|
||||
angle %= 360;
|
||||
if(angle < 0)
|
||||
if (angle < 0)
|
||||
{
|
||||
angle += 360;
|
||||
}
|
||||
@@ -153,7 +152,7 @@ public class Arc : Shape
|
||||
{
|
||||
angle -= 90;
|
||||
angle %= 360;
|
||||
if(angle < 0)
|
||||
if (angle < 0)
|
||||
{
|
||||
angle += 360;
|
||||
}
|
||||
@@ -171,7 +170,7 @@ public class Arc : Shape
|
||||
/// </summary>
|
||||
protected static void PropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
if(d is not Arc control)
|
||||
if (d is not Arc control)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user