Make sure ToggleButtons properties can be changed even before it has been rendered