Need an .Class method for Class in the Style<T> extension #2469
Closed
mdelgadov
started this conversation in
New Feature Discussions
Replies: 1 comment
-
Duplicate: CommunityToolkit/Maui.Markup#368 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
With Xaml styles and classes, we can compose flexible styles.
Nevertheless, we can't create classes with the Markup Style extension.
So, currently we need to do this:
Style s = Style().Add()... etc.
s.Class = "class";
etc.
Which is not elegant, takes the style out of the wrapper and feels incomplete.
I propose to create an extension method:
That fits nicely with the fluent notation.
If approved, I write the code, test it and present the PR....
Beta Was this translation helpful? Give feedback.
All reactions