Could this be supported with a background color brush type? #3
-
I can't use the LinearGradientBrush type because I only specify it as BackgroundColor(Color). LinearGradientBrush type because I can't set the LinearGradientBrush type. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi.
So looking at your code it can rewritten:
It is not excluded at all that we start using WPF-like brushes instead of this approach at some point, just need time to evaluate all the pros and cons. |
Beta Was this translation helpful? Give feedback.
-
Thank you! |
Beta Was this translation helpful? Give feedback.
-
@lukewire129 Some time has passed, MAUI brushes are now supported, latest nugget 1.2.4.8: |
Beta Was this translation helpful? Give feedback.
Hi.
Actually, the properties SkiaShape is using are not WPF-inspired brushes but rather those inspired by Figma, to allow its designs to be easily recreated:
So you have properties:
So looking at your code it can rewritten: