Style Refactoring#243
Conversation
|
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 |
4f7972f to
1fa4242
Compare
|
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 The changes are valuable, and would like to see the |
|
This dramatically simplifies the implementation of these common style properties in our controls. Much appreciated! |
Yes, it's |
This include:
Introduce
FontInfoto hold all the font related propertiesOrganize style related related types
Rename
IHasXXXStyletoIXXXStyleImplement
IStyleinComponentto avoid implement the interface over and over again