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

Can't use IsOn and IsBusy from SfSwitch

Thread ID:

Created:

Updated:

Platform:

Replies:

149816 Dec 10,2019 03:17 PM UTC Jan 13,2020 11:44 AM UTC Xamarin.Forms 11
loading
Tags: SfSwitch
Nelissen Benoît
Asked On December 10, 2019 03:17 PM UTC

Hi,

I can't use IsOn and IsBusy together. If I use IsOn only it's all working. IsBusy is causing some weird state.See screenshot attached.
Both properties are binded in XAML to my ViewModel.

C# from ViewModel :
        private async Task RefreshBluetooth(BluetoothState state) {
            switch (state) {
                case BluetoothState.On:
                    BluetoothSwitchIsOn = true;
                    if (BluetoothSwitchIsBusy) {
                        await Task.Delay(100);
                        BluetoothSwitchIsBusy = false;
                    }
                    break;
                case BluetoothState.TurningOn:
                    BluetoothSwitchIsBusy = true;
                    await Task.Delay(100);
                    break;
                case BluetoothState.TurningOff:
                    BluetoothSwitchIsBusy = true;
                    await Task.Delay(100);
                    break;
                case BluetoothState.Off:
                    BluetoothSwitchIsOn = false;
                    if (BluetoothSwitchIsBusy) {
                        await Task.Delay(100);
                        BluetoothSwitchIsBusy = false;
                    }
                    break;
                default:
                    BluetoothSwitchIsOn = false;
                    await Task.Delay(250);
                    BluetoothSwitchIsBusy = false;
                    break;
            }
        }

With or without Task.Delay is the same.

Attachment: switch_ecfe043e.zip

Hemalatha Marikumar [Syncfusion]
Replied On December 11, 2019 10:14 AM UTC

Hi Nelissen Benoît, 
 
Greetings from Syncfusion. 
 
We have checked the reported issue and we were able to reproduce the same. Currently we are validating the reported issue for finding the root caused and will update the complete details on December 13,2019. 
 
We appreciate your patience until then. 
 
Regards, 
Hemalatha M. 


Hemalatha Marikumar [Syncfusion]
Replied On December 13, 2019 12:23 PM UTC

Hi Nellisen Benoit, 
 
Thanks for your patience. 
 
We have fixed the reported issue of “IsOn and IsBusy causing some wired state” and please find the patch for this from below location. 
 
Assemblies: 
 
 
(OR) 
 
Nuget: 
 
Assembly version: 17.3.0.26 
 
Note: Before applying the patch, please clear the cache 
  
Disclaimer: 
 
Please note that we have created this patch for the version v17.3.0.26 specifically to resolve the issue reported in this. 
 
This fix will be included in our upcoming weekly release which is expected to be rolled out by end of December 2019. 
 
Regards, 
Hemalatha M. 


Nelissen Benoît
Replied On December 16, 2019 07:52 AM UTC

Hi,

This fixed the problem. Thank you.

Kanimozhi Gunasekaran [Syncfusion]
Replied On December 16, 2019 11:23 AM UTC

Hi Nellisen Benoit,

Thanks for your update. 

We glad to hear that given fix works. 

Please let us know if you need any further assistance. 

Regards,  
Kanimozhi G. 


Zbigniew Pytka
Replied On December 19, 2019 10:56 AM UTC

Hi,

Could you confirm that this fix is part of 17.4.0.29 release ?
I found similar problem at earlier version, but I don't see any improvments at 17.4.0.29 version.

Thx

Hemalatha Marikumar [Syncfusion]
Replied On December 19, 2019 11:12 AM UTC

Hi Zbigniew Pytka, 
 
Thanks for your update. 
 
We would like to let you know that we will include this reported issue fix in our upcoming Weekly Nuget release which is expected to be rolled out on December 24,2019.  
 
Please let us know once you will check with that fixed Nuget of Switch control. We appreciate your patience until then. 
 
Regards, 
Hemalatha M. 


Nelissen Benoît
Replied On December 26, 2019 01:53 PM UTC

It's working in v17.4.0.40 release.

Hemalatha Marikumar [Syncfusion]
Replied On December 30, 2019 07:28 AM UTC

Hi Zbigniew Pytka, 
 
Thanks for your update. 
 
We are glad to hear that reported issue is resolved with our weekly Nuget release version v17.4.0.40. 
 
Please let us know if you need any further assistance. 
 
Regards, 
Hemalatha M. 


Zbigniew Pytka
Replied On January 10, 2020 12:30 PM UTC

Hi,

v17.4.0.40 haven't helped me
I suspect my problem is related with styles, I will create separated thread or bug
Best regards
Zibi


Zbigniew Pytka
Replied On January 10, 2020 12:54 PM UTC

I've reported it as feedback
https://www.syncfusion.com/feedback/11234/problem-with-appalying-style-for-sfswitch-control

Hemalatha Marikumar [Syncfusion]
Replied On January 13, 2020 11:44 AM UTC

Hi Zbigniew Pytka, 
 
Thanks for your update. 
 
Please follow-up feedback link for getting further updates. 
 
Please let us know if you have any other concern. 
 
Regards, 
Hemalatha M. 


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