Dynamically change the boundary colour of button

Can we change the boundary colour of Button of button dynamically…need for showing the boundaries of the states.