I am binding an int to a textbox. Is there a way to change the color of the textbox based on the binded value?
For eg. if the int if > 0, the textbox should be green, else, red.
This is where you would use Value Converters, one that converters from an int to a color. You then bind the background property to the int property (as well as binding the text).
Here's an post about them So What’s a Silverlight Value Converter Anyway?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With