Button and action for change the "style" (how to?)
Posted: 11 Mar 2018, 10:45
I have basic button and I want change the button style after something happen. For example, if Label or any element get value 1, button change color scheme, and if value from element get back to 0, button get previous color scheme.
Idea to change color scheme is duplicated graphic but with diferent colors. And when value is 0, duplicated graphics are hidden, and when value is 1, then graphics will be hidden and duplicated visible.
Idea is bind visibility to the value, but button don't have value, and I have no idea how or where to bind it.
How to do this without codebehind? It is possible?
Idea to change color scheme is duplicated graphic but with diferent colors. And when value is 0, duplicated graphics are hidden, and when value is 1, then graphics will be hidden and duplicated visible.
Idea is bind visibility to the value, but button don't have value, and I have no idea how or where to bind it.
How to do this without codebehind? It is possible?