diff --git a/src/Uno.UI/Microsoft/UI/Xaml/Controls/ColorPicker/ColorSpectrumAutomationPeer.cs b/src/Uno.UI/Microsoft/UI/Xaml/Controls/ColorPicker/ColorSpectrumAutomationPeer.cs index 4d7a66be3a69..b9046511c4b8 100644 --- a/src/Uno.UI/Microsoft/UI/Xaml/Controls/ColorPicker/ColorSpectrumAutomationPeer.cs +++ b/src/Uno.UI/Microsoft/UI/Xaml/Controls/ColorPicker/ColorSpectrumAutomationPeer.cs @@ -119,9 +119,9 @@ public void RaisePropertyChangedEvent(Color oldColor, Color newColor, Vector4 ol private string GetValueString(Color color, Vector4 hsvColor) { - var hue = (UInt32)(Math.Round(Hsv.GetHue(hsvColor))); - var saturation = (UInt32)(Math.Round(Hsv.GetSaturation(hsvColor) * 100)); - var value = (UInt32)(Math.Round(Hsv.GetValue(hsvColor) * 100)); + var hue = (uint)Math.Round(Hsv.GetHue(hsvColor)); + var saturation = (uint)Math.Round(Hsv.GetSaturation(hsvColor) * 100); + var value = (uint)Math.Round(Hsv.GetValue(hsvColor) * 100); if (DownlevelHelper.ToDisplayNameExists()) {