Closed hishamco closed 4 years ago
This is ended up with a Component something similar to WebControl in the ASP.NET WebForms, also we already have DataBoundComponent which make everything is clear and clean, no more IHasStyle anymore because it's built-in in the Component
This PR shows the basic control got cleaner after remove all the IHasStyle properties and CalculatedStyle, I will continue after this to let all the components inherits from Component or DataBoundComponent
Trying to close and open PR to let CI/CD run the test again, but no luck
I squash the commit and force push, then the tests pass, @csharpfritz please merge #244 because it might break the build on any PR
I'm not a fan of the renaming of all of the IxxxStyle
interfaces without an issue to discuss first.
The changes are valuable, and would like to see the Component
class renamed to something a little more descriptive first
This dramatically simplifies the implementation of these common style properties in our controls. Much appreciated!
This dramatically simplifies the implementation of these common style properties in our controls.
Yes, it's
This include:
Introduce
FontInfo
to hold all the font related propertiesOrganize style related related types
Rename
IHasXXXStyle
toIXXXStyle
Implement
IStyle
inComponent
to avoid implement the interface over and over again