locked
ToggleSwitch with command (windows store) RRS feed

  • Question

  • Hi, I'm trying to put a ToggleSwith but i have seen that this control doesn't have the property command like a button so I cannot use MVVM, i need to use Toggled event. 

    Someone knows how to invoke ICommand from this control?

    Thanks in advance

    Friday, July 19, 2013 12:01 PM

Answers

All replies

  • Try using MVVM light WinRtBehaviors. Check this blog for more details

    Thanks,
    Sachin
    My Samples

    Friday, July 19, 2013 4:48 PM
  • No. Databind the IsOn property which is read/write to a bool property on your ViewModel.

    • Proposed as answer by Ben - GGT Friday, July 26, 2013 8:10 PM
    Saturday, July 20, 2013 1:18 AM