0

I'm working on a windows phone 8 application. I want to use toggle switch for some purposes. Sadly windows phone 8 does not have that controller. So i had to install windows phone toolkit nuget package.

Now I want to set the state(some thing like isChecked=true). but I couldn't find any method to use. can someone please help me.

LahiruK717
  • 47
  • 7
  • There are plenty of examples how to Save/Load values. [Some information from MSDN](http://msdn.microsoft.com/en-us/library/gg680266(v=pandp.11).aspx). – Romasz May 31 '14 at 06:43

1 Answers1

1

Try this on Button Click

private void Button_Click(object sender, RoutedEventArgs e)
{
    if (toggleSwitch.IsChecked == true)
        toggleSwitch.IsChecked = false;
    else
        toggleSwitch.IsChecked = true;
}

It is Working....

Amit Bhatiya
  • 2,621
  • 1
  • 12
  • 20