public setValue(value as Int) as Void:
Sets the value and notifies bindings when it changes.
slider.setValue(42)