Changed Switch to ToggleButton.
Merge pull request #1 from LumenTeun/learning

Changed Switch to ToggleButton.