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

Can't use IsOn and IsBusy from SfSwitch

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

11 Replies

HM Hemalatha Marikumar Syncfusion Team 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. 



HM Hemalatha Marikumar Syncfusion Team 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. 



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

Hi,

This fixed the problem. Thank you.


KG Kanimozhi Gunasekaran Syncfusion Team 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. 



ZP Zbigniew Pytka 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


HM Hemalatha Marikumar Syncfusion Team 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. 



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

It's working in v17.4.0.40 release.


HM Hemalatha Marikumar Syncfusion Team 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. 



ZP Zbigniew Pytka 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



ZP Zbigniew Pytka 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


HM Hemalatha Marikumar Syncfusion Team 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. 


Loader.
Live Chat Icon For mobile
Up arrow icon