更新整理

This commit is contained in:
GG Z
2025-04-24 20:56:44 +08:00
parent 155cef46f8
commit 5b6d67b571
813 changed files with 14437 additions and 12362 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 824 B

View File

@@ -76,7 +76,7 @@ public class ProgressRing : System.Windows.Controls.Control
/// </summary>
protected static void OnProgressChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
if(d is not ProgressRing control)
if (d is not ProgressRing control)
{
return;
}
@@ -91,12 +91,12 @@ public class ProgressRing : System.Windows.Controls.Control
{
var percentage = Progress;
if(percentage > 100)
if (percentage > 100)
{
percentage = 100;
}
if(percentage < 0)
if (percentage < 0)
{
percentage = 0;
}
@@ -104,7 +104,7 @@ public class ProgressRing : System.Windows.Controls.Control
// (360 / 100) * percentage
var endAngle = 3.6d * percentage;
if(endAngle >= 360)
if (endAngle >= 360)
{
endAngle = 359;
}