I have a toggle button in a silverlight application as follows:
<ToggleButton Content="ToggleButton" Margin="0,30,0,0" Style="{StaticResource ChkToggleButton}" />
Currently, the switch toggles the visual states when switching and nothing else.
However, I need to associate each of the switches with a different command. For example, if you click "On" 1, run command1 and press the βONβ button again, Run command2 .
How can I do that?
source share