How to make slider reacts with changing values?

Instead of using property binding, which can be expensive, I opted to manually trigger this. Calling invalidate causes the widget to redraw.