From c27cd3beb6888a4dcd1e793cf70c7c74e5ea410a Mon Sep 17 00:00:00 2001 From: Diederik Krols Date: Tue, 2 Nov 2021 20:04:21 +0100 Subject: [PATCH] Fix Radial Gauge ScaleTickBrush color assignment Due to a typo or a merge conflict, the ScaleTickBrush of the RadialGauge control currently gets the color of the ScaleBrush instead of its own. --- .../RadialGauge/RadialGauge.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Microsoft.Toolkit.Uwp.UI.Controls.Input/RadialGauge/RadialGauge.cs b/Microsoft.Toolkit.Uwp.UI.Controls.Input/RadialGauge/RadialGauge.cs index 3acea37676c..3a2f9d08a6a 100644 --- a/Microsoft.Toolkit.Uwp.UI.Controls.Input/RadialGauge/RadialGauge.cs +++ b/Microsoft.Toolkit.Uwp.UI.Controls.Input/RadialGauge/RadialGauge.cs @@ -680,7 +680,7 @@ private void OnColorsChanged() ClearBrush(_needleBrush, NeedleBrushProperty); ClearBrush(_trailBrush, TrailBrushProperty); ClearBrush(_scaleBrush, ScaleBrushProperty); - ClearBrush(_scaleBrush, ScaleTickBrushProperty); + ClearBrush(_scaleTickBrush, ScaleTickBrushProperty); ClearBrush(_tickBrush, TickBrushProperty); ClearBrush(_foreground, ForegroundProperty); } @@ -690,7 +690,7 @@ private void OnColorsChanged() RestoreBrush(_needleBrush, NeedleBrushProperty); RestoreBrush(_trailBrush, TrailBrushProperty); RestoreBrush(_scaleBrush, ScaleBrushProperty); - RestoreBrush(_scaleBrush, ScaleTickBrushProperty); + RestoreBrush(_scaleTickBrush, ScaleTickBrushProperty); RestoreBrush(_tickBrush, TickBrushProperty); RestoreBrush(_foreground, ForegroundProperty); } @@ -828,4 +828,4 @@ private double RoundToMultiple(double number, double multiple) return number + modulo; } } -} \ No newline at end of file +}