Question: CSS to Xamarin.Forms #44
Replies: 9 comments 2 replies
-
I think it's best to remove this. It is additional code to maintain, additional docs to maintain, confusion for users, and extra work needed to add or change controls in the repository. For interested users this function could be in a separate community-maintained repository, usable via a separate nuget package. CSharp source generators would allow this to happen without any need to provide support in the main repo. It's important to keep the main repo as small and clean as possible for maintainability. |
Beta Was this translation helpful? Give feedback.
-
I much prefer XAML styling, but there are currently things you can do with CSS you can't do with XAML styling. Whether CSS is dropped or not, I would like XAML styling to support advanced selectors. |
Beta Was this translation helpful? Give feedback.
-
Genuinely curious about how many people use CSS styles over XAML styles? I know this is purely anecdotal, but I’ve never seen it used outside of examples. I’d agree with @charlesroddie, add support via NuGet for people who want it. |
Beta Was this translation helpful? Give feedback.
-
I agree with @charlesroddie opinion. Maybe is a solution of this case. Responding about your question... I know people that use CSS to Xamarin.Forms. But the idea not is choice between XAML Styles and CSS. The people in this case use together. |
Beta Was this translation helpful? Give feedback.
-
Just putting in a vote to keep CSS styling in the core. We use it exclusively for styling in our framework and love the flexibility and easy it provides. |
Beta Was this translation helpful? Give feedback.
-
maybe using the generic host structure (issue spec) we can split these "styles features" to optional modules (nuget). something like... Host.CreateDefaultBuilder()
.ConfigureStyles(settings => settings.UseXamlStyles().UseCssStyles()) Where |
Beta Was this translation helpful? Give feedback.
-
To me, is the linker that should be in charge to strip away the css assemblies if not used in app :) I'm pretty sure css will not be removed from MAUI, in some cases you can do some things not possible with xaml styling. |
Beta Was this translation helpful? Give feedback.
-
This is a good point! But I don't know, maybe I'm just talking about something that has already been discussed 🤷♂️ |
Beta Was this translation helpful? Give feedback.
-
I think that makes sense to maintain the CSS support if we have web support, as described here #62. Also, if the Mobile Blazor Bindings becomes a thing, the style using CSS will be more useful than XAML style (in this case). |
Beta Was this translation helpful? Give feedback.
-
The Xamarin.Forms 3.0 and latest versions have support to CSS.
How the situation about this ? MAUI will support this feature ?
Beta Was this translation helpful? Give feedback.
All reactions