Closed TimLariviere closed 1 year ago
After thinking more about it, adding first-class support to Xamarin.Forms.Style
, VisualStateManager
and ControlTemplate
doesn't make sense in Fabulous. Those features are mostly XAML-specific.
Fabulous already takes care of most styling in other ways.
Please read https://docs.fabulous.dev/v2/development/styling-widgets/ to learn how to achieve the same in Fabulous.
In Xamarin.Forms, it is possible to declare styles that can be applied to either one or more controls of the same type.
I have been trying to add support for it with the following syntax
It does work, even if I'm not currently 100% sure the code I wrote is of good quality. For now, it's still quite limited. Also Style doesn't react to changes, so making a dynamic style won't work.