Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complex content (mixed C# and markup) workaround with string interpolation is overly complicated #34578

Closed
KasparOrange opened this issue Jan 28, 2025 · 2 comments

Comments

@KasparOrange
Copy link

This: Style=@($"background: {(shift.Person?.Id == User.Id ? Theme.Palette.Primary.Value : Theme.Palette.PrimaryDarken)};") looks ugly is confusing and JavaScript developer laughing about us. I know that's polemic, but what I am trying to allude to, is the need to use a lot of special characters and scopes to make this seemingly easy and usual task work.

Is this something that is my fault for not understanding how to use the framework correctly? Then how am I intended to do this correctly?

Is this just something hard to understand for the compiler? Then are there plans to make the developer experience better in this regard?

Also, I am new to creating issues, I know this does not fit the outline of the template issue, but I just didn't know how to fit what I wanted to say in that format. If this is not the right place for this information, I am sorry. :)

@guardrex
Copy link
Collaborator

Hello @KasparOrange .... Please re-open this issue using the Open a documentation issue link/feedback form at the bottom of the article. Use of the form adds metadata to your GitHub issue that cross-links the topic and pings the author automatically for a faster response.

@guardrex
Copy link
Collaborator

BTW @KasparOrange ... I can't quite even tell if you're just asking a general development question. If you're asking a general question not related to a specific article, we only work on documentation here. You'll have better assistance with general development questions on a public support forum. We recommend ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants