Skip to content

Commit e66dc18

Browse files
committed
Rename Halo Stuffs
1 parent 59eb9bf commit e66dc18

File tree

16 files changed

+15600
-12167
lines changed

16 files changed

+15600
-12167
lines changed

dev/DevWinUI.Controls/Controls/Halo/HaloArc.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public HaloArc()
4848

4949
Data = path;
5050

51-
BindingOperations.SetBinding(this, Halo.ThicknessProperty,
51+
BindingOperations.SetBinding(this, HaloPanel.ThicknessProperty,
5252
new Binding
5353
{
5454
Source = this, Mode = BindingMode.TwoWay,

dev/DevWinUI.Controls/Controls/Halo/HaloArcSlider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ protected override void OnApplyTemplate()
1616

1717
SlideStop += (sender, args) => VisualStateManager.GoToState(this, "Resting", false);
1818

19-
SetValue(Halo.ThicknessProperty, 30.0);
19+
SetValue(HaloPanel.ThicknessProperty, 30.0);
2020
}
2121
}

dev/DevWinUI.Controls/Controls/Halo/HaloChain.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace DevWinUI;
44

5-
public partial class HaloChain : HaloRing
5+
public partial class HaloChain : HaloRingPanel
66
{
77
public double Tension
88
{
@@ -45,10 +45,10 @@ protected override Size ArrangeOverride(Size finalSize)
4545
foreach (var link in Children)
4646
{
4747
angle += EnterAngle(link, radius);
48-
link.SetValue(HaloRing.AngleProperty, angle);
48+
link.SetValue(HaloRingPanel.AngleProperty, angle);
4949

5050
angle += ExitAngle(link, radius);
51-
link.SetValue(HaloRing.OffsetProperty, Offset);
51+
link.SetValue(HaloRingPanel.OffsetProperty, Offset);
5252
}
5353

5454
return base.ArrangeOverride(new Size(radius * 2, radius * 2));
@@ -82,7 +82,7 @@ private double ExitAngle(UIElement link, double radius)
8282

8383
private double HalfAngle(Size size, double radius)
8484
{
85-
var thickness = (double)GetValue(Halo.ThicknessProperty);
85+
var thickness = (double)GetValue(HaloPanel.ThicknessProperty);
8686

8787
var width = new HaloVector(
8888
Math.Cos(Offset.ToRadians()) * size.Width,

dev/DevWinUI.Controls/Controls/Halo/Halo.cs renamed to dev/DevWinUI.Controls/Controls/Halo/HaloPanel.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace DevWinUI;
44

5-
public partial class Halo : Panel
5+
public partial class HaloPanel : Panel
66
{
77
public static double GetThickness(DependencyObject o)
88
{
@@ -14,7 +14,7 @@ public static void SetThickness(DependencyObject o, double value)
1414
o.SetValue(ThicknessProperty, value);
1515
}
1616
public static readonly DependencyProperty ThicknessProperty =
17-
DependencyProperty.RegisterAttached("Thickness", typeof(double), typeof(Halo), new PropertyMetadata(0.0, Refresh));
17+
DependencyProperty.RegisterAttached("Thickness", typeof(double), typeof(HaloPanel), new PropertyMetadata(0.0, Refresh));
1818

1919
public static int GetBand(DependencyObject o)
2020
{
@@ -26,7 +26,7 @@ public static void SetBand(DependencyObject o, int value)
2626
o.SetValue(BandProperty, value);
2727
}
2828
public static readonly DependencyProperty BandProperty =
29-
DependencyProperty.RegisterAttached("Band", typeof(int), typeof(Halo), new PropertyMetadata(0, Refresh));
29+
DependencyProperty.RegisterAttached("Band", typeof(int), typeof(HaloPanel), new PropertyMetadata(0, Refresh));
3030

3131
protected override Size MeasureOverride(Size availableSize)
3232
{
@@ -94,7 +94,7 @@ private static void Refresh(object o, DependencyPropertyChangedEventArgs e)
9494
var element = o as FrameworkElement;
9595
if (element == null) return;
9696

97-
var parent = element.Parent as Halo;
97+
var parent = element.Parent as HaloPanel;
9898
if (parent == null) return;
9999

100100
parent.InvalidateMeasure();

dev/DevWinUI.Controls/Controls/Halo/HaloRingLabel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public double FontSize
3030

3131
public HaloRingLabel()
3232
{
33-
BindingOperations.SetBinding(this, Halo.ThicknessProperty, new Binding
33+
BindingOperations.SetBinding(this, HaloPanel.ThicknessProperty, new Binding
3434
{
3535
Source = this, Path = new PropertyPath("FontSize"), Mode = BindingMode.TwoWay
3636
});

dev/DevWinUI.Controls/Controls/Halo/HaloRing.cs renamed to dev/DevWinUI.Controls/Controls/Halo/HaloRingPanel.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,31 @@
22

33
namespace DevWinUI;
44

5-
public partial class HaloRing : Panel
5+
public partial class HaloRingPanel : Panel
66
{
77
public static void SetAngle(DependencyObject o, double value)
88
{
9-
o.SetValue(HaloRing.AngleProperty, value);
9+
o.SetValue(HaloRingPanel.AngleProperty, value);
1010
}
1111

1212
public static double GetAngle(DependencyObject o)
1313
{
14-
return (double)o.GetValue(HaloRing.AngleProperty);
14+
return (double)o.GetValue(HaloRingPanel.AngleProperty);
1515
}
1616
public static readonly DependencyProperty AngleProperty =
17-
DependencyProperty.RegisterAttached("Angle", typeof(double), typeof(HaloRing), new PropertyMetadata(0.0, Refresh));
17+
DependencyProperty.RegisterAttached("Angle", typeof(double), typeof(HaloRingPanel), new PropertyMetadata(0.0, Refresh));
1818

1919
public static double GetOffset(DependencyObject o)
2020
{
21-
return (double)o.GetValue(HaloRing.OffsetProperty);
21+
return (double)o.GetValue(HaloRingPanel.OffsetProperty);
2222
}
2323

2424
public static void SetOffset(DependencyObject o, double value)
2525
{
26-
o.SetValue(HaloRing.OffsetProperty, value);
26+
o.SetValue(HaloRingPanel.OffsetProperty, value);
2727
}
2828
public static readonly DependencyProperty OffsetProperty =
29-
DependencyProperty.RegisterAttached("Offset", typeof(double), typeof(HaloRing), new PropertyMetadata(0.0, Refresh));
29+
DependencyProperty.RegisterAttached("Offset", typeof(double), typeof(HaloRingPanel), new PropertyMetadata(0.0, Refresh));
3030

3131
protected override Size MeasureOverride(Size availableSize)
3232
{
@@ -35,7 +35,7 @@ protected override Size MeasureOverride(Size availableSize)
3535
child.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
3636
}
3737

38-
SetValue(Halo.ThicknessProperty, RingThickness());
38+
SetValue(HaloPanel.ThicknessProperty, RingThickness());
3939

4040
return RingSize(availableSize);
4141
}
@@ -113,7 +113,7 @@ private static void Refresh(object o, DependencyPropertyChangedEventArgs e)
113113
var element = o as FrameworkElement;
114114
if (element == null) return;
115115

116-
var parent = element.Parent as HaloRing;
116+
var parent = element.Parent as HaloRingPanel;
117117
if (parent == null) return;
118118

119119
parent.InvalidateMeasure();

dev/DevWinUI.Controls/Controls/Halo/HaloCircleHelper.cs renamed to dev/DevWinUI.Controls/Controls/Halo/Internals/HaloCircleHelper.cs

File renamed without changes.

dev/DevWinUI.Controls/Controls/Halo/HaloExtensions.cs renamed to dev/DevWinUI.Controls/Controls/Halo/Internals/HaloExtensions.cs

File renamed without changes.

dev/DevWinUI.Controls/Controls/Halo/HaloVector.cs renamed to dev/DevWinUI.Controls/Controls/Halo/Internals/HaloVector.cs

File renamed without changes.

dev/DevWinUI.Controls/Controls/Halo/TimeDisplayConverter.cs renamed to dev/DevWinUI.Controls/Controls/Halo/Internals/TimeDisplayConverter.cs

File renamed without changes.

0 commit comments

Comments
 (0)