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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How can I query the totggle status of the switch

Thread ID:

Created:

Updated:

Platform:

Replies:

147709 Sep 20,2019 05:16 PM UTC Sep 23,2019 05:36 AM UTC Xamarin.Forms 1
loading
Tags: SfSwitch
John
Asked On September 20, 2019 05:16 PM UTC

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

Rabhia Beham Kathar Mideenar [Syncfusion]
Replied On 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.
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon