So, simple question, I figured someone else would’ve already asked this but I can’t seem to find another forum, so my question is:
I’ve got a list of buttons for my users to select, when a certain value in my backend is true (or false, doesn’t matter really), I want that button to turn gray, and not be usable anymore. How would I achieve this? I’d assume some form of <WhileTrue… /> etc? But how do I disable the button and change its background color inside of that. Here is my custom button.
I see that you have added two class properties Text and FontSize. Let’s add another property Disabled which will hold boolean value true or false. Now in js create our Observable with value false. This will be our default value for the button. In UX when you create new class instance just data bind to property. This way you get your value from javascript.
DropShadow happens to be slow, better use Shadow to get a shadow for your element.