Fixes #954
Added support for ToggleButtons in WindowCommands and also modified WindowCommands code for supporting all ButtonBase controls.