Conditional Blazor Styles (without the if statements)

added by DotNetKicks
3/14/2022 2:19:14 PM

190 Views

If you're building Blazor components you're probably used to driving the UI from data. At its simplest this might be to show a value in the UI using one-way binding: But what if you want to alter the appearance of the component, beyond just showing data, say to change the colour of a border, or background, in response to a value found in the data?


0 comments