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

Adding ranges in xaml SfCircularGauge?

After updating to 15.3.0.26 The code example doesn't working with the Scale.Ranges.

<gauge:SfCircularGauge x:Name="circulargauge">
 
                        <gauge:SfCircularGauge.Scales>
 
                            <gauge:Scale NumberOfDecimalDigits="4" StartAngle="135" StartValue="0" EndValue="100" Interval="10" SweepAngle="270"
                                        RimThickness="20" RimColor="Gray" MinorTicksPerInterval="0">
                                <gauge:Scale.Ranges>
                                    <gauge:Range StartValue="0" EndValue="70" Thickness="10" Color="#2bbfb8" />
                                    <gauge:Range StartValue="70" EndValue="100" Thickness="10" Color="#444444" />
                                gauge:Scale.Ranges>
                            gauge:Scale>
 
 
                        gauge:SfCircularGauge.Scales>
                              
             gauge:SfCircularGauge>
Error: Unhandled Exception:

System.MissingMethodException:  occurred or System.MissingMethodException: Method 'Syncfusion.SfGauge.XForms.Scale.get_Ranges' not found.

Any help would be appreciated.
Thanks

5 Replies

AK Ashwin Kumaravel Syncfusion Team August 23, 2017 01:57 AM

Hi Stef,

Thanks for using Syncfusion Products,

Can you please remove and add the Nugets and clear the Nugets cache and rebuild the application and please ensure still you are facing the same issue?

Follow the below link to clear cache,

https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache  

Try the above mention steps and please get back us if you have any concern.

For Mac:

Can you please check and remove in your mac if there is any package in the following location?

• ~/.local/share/NuGet/Cache
• ~/.nuget/package

Please get back us if you have any concern,

Regards,
Ashwin



ST Stef August 23, 2017 10:01 AM

Hi,

Thanks for the reply.

I cleared the cache etc and i still get the error.

when i remove the code below It works again.

<gauge:Scale.Ranges>
                                    <gauge:Range StartValue="0" EndValue="70" Thickness="10" Color="#2bbfb8" />
                                    <gauge:Range StartValue="70" EndValue="100" Thickness="10" Color="#444444" />
                                gauge:Scale.Ranges>

I've tried from 15.2.0.40 to 15.2.0.46 and the same code works but 15.3.0.26 doesn't.

Thanks

Stef

 



AK Ashwin Kumaravel Syncfusion Team August 24, 2017 01:46 AM

Hi Stef,

Can you please ensure that you are referring the same version (15.3451.0.26) inside all the projects?

Refer the below link for list of assemblies in project

Dependency Link- https://help.syncfusion.com/xamarin/introduction/control-dependencies#sfcirculargauge

Note- If there is any mismatch in the assembly version of the assemblies,

For Example, If Syncfusion.SfGauge.XForms of version 15.3451.0.26 and other assemblies of version 15.2451.0.46, then the reported issue will occur.

So, please make sure and back to us if you are still facing the problem.

Regards,
Ashwin
 



ST Stef August 24, 2017 03:33 AM

Hi Aswin,

I basically had to uninstall the Syncfusion Essential studio 15.2.0.40 from the pc. After looking in the project assembly it was still there (15.2.0.40) and after uninstalling Syncfusion Essential studio it worked.

I just assumed by removing the references of it for each project, that would be enough. Clearly not!!

Thanks for your help.

Stef



AK Ashwin Kumaravel Syncfusion Team August 25, 2017 04:35 AM

Hi Stef,

Thanks for the update,

We are glad that issue is resolved at your end. Please get back to us if you have any concern.

Regards,
Ashwin


Loader.
Live Chat Icon For mobile
Up arrow icon