Skip to content

Commit 67cc4f4

Browse files
committed
Merge branch 'mdta-StorageControls' of https://github.com/mdtauk/Files into mdta-StorageControls
2 parents 39d18af + e6e4ede commit 67cc4f4

File tree

5 files changed

+228
-624
lines changed

5 files changed

+228
-624
lines changed

src/Files.App.Controls/Storage/RingShape/RingShape.Properties.cs

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,42 +23,52 @@ public partial class RingShape : Path
2323
{
2424
protected virtual void OnStartAngleChanged(double oldValue, double newValue)
2525
{
26-
StartAngleChanged();
26+
UpdatePath();
2727
}
2828

2929
protected virtual void OnEndAngleChanged(double oldValue, double newValue)
3030
{
31-
EndAngleChanged();
31+
UpdatePath();
3232
}
3333

3434
protected virtual void OnSweepDirectionChanged(SweepDirection oldValue, SweepDirection newValue)
3535
{
36-
SweepDirectionChanged();
36+
UpdatePath();
3737
}
3838

3939
protected virtual void OnMinAngleChanged(double oldValue, double newValue)
4040
{
41-
MinMaxAngleChanged(false);
41+
UpdatePath();
4242
}
4343

4444
protected virtual void OnMaxAngleChanged(double oldValue, double newValue)
4545
{
46-
MinMaxAngleChanged(true);
46+
UpdatePath();
4747
}
4848

4949
protected virtual void OnRadiusWidthChanged(double oldValue, double newValue)
5050
{
51-
RadiusWidthChanged();
51+
UpdatePath();
5252
}
5353

5454
protected virtual void OnRadiusHeightChanged(double oldValue, double newValue)
5555
{
56-
RadiusHeightChanged();
56+
UpdatePath();
5757
}
5858

5959
protected virtual void OnIsCircleChanged(bool oldValue, bool newValue)
6060
{
61-
IsCircleChanged();
61+
UpdatePath();
62+
}
63+
64+
private void RingShape_SizeChanged(object obj, SizeChangedEventArgs e)
65+
{
66+
UpdatePath();
67+
}
68+
69+
private void OnStrokeThicknessChanged(DependencyObject d, DependencyProperty dp)
70+
{
71+
UpdatePath();
6272
}
6373
}
6474
}

0 commit comments

Comments
 (0)