We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How can I query the totggle status of the switch

On a regular switch I can use the following code to set the property of another control:

SharingEnabledToggle.Text = SharingEnabledSwitch.IsToggled ? "Sharing Is Enabled: " : "Enable Sharing: ";

But IsToggled doesn't appear to be implemented in SfSwitch.  How would I go about implementing the above statement for an SfSwitch?

John

1 Reply

RB Rabhia Beham Kathar Mideenar Syncfusion Team September 23, 2019 05:36 AM UTC

Hi John,

Greetings from Syncfusion.

We would like to let you know that the States have been mentioned as On and Off in SfSwitch. Please have the Ug link for the same,

https://help.syncfusion.com/xamarin/sfswitch/states

Please check with the above ug link and let us know if you have any concern.

Regards,
Rabhia Beham K.
 


Loader.
Live Chat Icon For mobile
Up arrow icon