This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
Color class lacks Hue, Saturation, and Luminosity properties. #280
Labels
bug
Something isn't working
The Xamarin.Forms
Color
struct hasHue
,Saturation
, andLuminosity
properties. The Maui.GraphicsColor
class does not. This makes the upgrade path from Forms to MAUI that more frustrating.I get that converting a
Color
to HSL every time theColor
changes isn't efficient (which is what Forms did, IIRC), when the chances are that most users aren't interested in HSL. But for anyone who did use them, well, their apps are now broken until they rewrite to call GetSaturation() etc., and restructure their code to avoid keep calling GetSaturation() etc (which recalculates the value each time) rather than just accessing a property.At the very least, I'd have hoped for
Hue
,Saturation
, andLuminosity
properties that are marked as obsolete for the first release. It's a bit annoying having to rewrite data binding code that bound to properties that no longer exist.The text was updated successfully, but these errors were encountered: