fix ToggleSwitch state incorrect if not visible
Merge pull request #762 from MahApps/658-punker76-toggleswitch-enable-visible-issue

fix ToggleSwitch state incorrect if not visible