You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently we have to manually sort the GradientStops by offset in order to have the correct rendering, while in WPF the gradient stop collection can be in any order, and is automatically sorted during the rendering.
Describe the solution you'd like
I would like to add GradientStop in any order, and have the correct rendering. Order should not matter.
Describe alternatives you've considered
No response
Additional context
Or may be it is a bug?
The text was updated successfully, but these errors were encountered:
Sorting adds some overhead. Is there a real use case where we can't expect the devs to order them on their own?
I understand but that's a bit weird that this do not work like WPF or UWP.
Sometime to flip a gradient, I just copy/paste and switch the offsets.
My use case is porting a GradientBrushEditor control that I used in WPF to Avalonia.
One idea, may a as Gilibald suggested, sort the stops declared in XAML at compile time, and only dynamically sort Brushes created from Code? Generally there is no many stops, so the overhead should be limited.
Is your feature request related to a problem? Please describe.
Currently we have to manually sort the GradientStops by offset in order to have the correct rendering, while in WPF the gradient stop collection can be in any order, and is automatically sorted during the rendering.
Describe the solution you'd like
I would like to add GradientStop in any order, and have the correct rendering. Order should not matter.
Describe alternatives you've considered
No response
Additional context
Or may be it is a bug?
The text was updated successfully, but these errors were encountered: