Creating a toggle switch with data binding

Is there a best practice around creating a toggle switch with data binding?

Also do you always have to have an idle state defined to staopm the start state from executing the next connected state?