Improvements to avoid design time errors.
Fix error in ToggleButton command bindings.
Added automatic settings.