#253 - providing IsCheckedChanged hook for ToggleSwitch consumers
updated sample to use event handler