SfSwitch not MVVM friendly

Hi i think the SfSwift doesnt have a bindable command property that allows making event on ViewModel, Also using GestureRecognizers doesnt work, even if you add it on the xaml, i have tried to get the event using Tapped event and Command property but i was unsuccessful 

1 Reply 1 reply marked as answer

SP Sakthivel Palaniyappan Syncfusion Team July 17, 2020 09:35 AM UTC

Hi Hicham, 
 
Greetings from Syncfusion. 
 
We have prepared the sample based on your requirement with SfSwitch Control. You can directly bind the IsOn API from ViewModel. Please use the below sample for the same, 
 
 
 
Please check with the above and let us know if you have any concerns. 

Regards,
Sakthivel P.
 


Marked as answer
Loader.
Up arrow icon