Skip to content

Commit 896c299

Browse files
committed
Add PercentageChanged event in ArcProgress
1 parent 3fbcda1 commit 896c299

File tree

1 file changed

+2
-1
lines changed
  • dev/DevWinUI.Controls/Controls/Native/Progress/ArcProgress

1 file changed

+2
-1
lines changed

dev/DevWinUI.Controls/Controls/Native/Progress/ArcProgress/ArcProgress.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public partial class ArcProgress : Control
2222
private double _radius;
2323
private double _centerX;
2424
private double _centerY;
25-
25+
public event EventHandler PercentageChanged;
2626
public ArcProgressInitialPosition InitialPosition
2727
{
2828
get { return (ArcProgressInitialPosition)GetValue(InitialPositionProperty); }
@@ -188,6 +188,7 @@ public void DrawArcProgress(double percentage)
188188
{
189189
double angle = Math.Min(Math.Max(percentage, 0), 100) * 3.6;
190190
DrawArcSlice(angle);
191+
PercentageChanged?.Invoke(this, null);
191192
}
192193

193194
public void DrawArcSlice(double angle)

0 commit comments

Comments
 (0)