Called by the framework to notify the button that it becomes visible or invisible.
The default implementation does nothing.