Remarks: This can be used to create your own style engine to apply styles to widgets. The DefaultStyleProvider is a good example of how to implement a style provider.
Properties
Inherit
#Gets a value indicating whether this IStyleProvider allows inheriting styles from the parent object.
Remarks: This is used when applying cascading styles, sometimes the user or the provider will not want parent styles to be applicable.
Value:
true to inherit parent styles; otherwise, false.Methods
ApplyCascadingStyle
#Applies cascading styles to the specified
widget.Remarks: Cascading styles are applied on a widget when it is loaded onto a form, where styles are usually applied based on the container it is in.
ApplyDefault
#Applies default styling to the specified widget after creation.
Parameters:
| widget (object) | Widget to apply default styles to. |
ApplyStyle
#Applies styles to the specified
widgetRemarks: This is used for global style providers when applying styles to a widget directly based on its style alone. This is usually applied when the style itself is updated.