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.
Unfortunately, activation email could not send to your email. Please try again.

Adding ranges in xaml SfCircularGauge?

Thread ID:

Created:

Updated:

Platform:

Replies:

132233 Aug 22,2017 04:19 AM Aug 25,2017 05:35 AM Xamarin.Forms 5
loading
Tags: SfCircularGauge
Stef
Asked On August 22, 2017 06:13 AM

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

Ashwin Kumaravel [Syncfusion]
Replied On August 23, 2017 02: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


Stef
Replied On August 23, 2017 11: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

 


Ashwin Kumaravel [Syncfusion]
Replied On August 24, 2017 02: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
 


Stef
Replied On August 24, 2017 04: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


Ashwin Kumaravel [Syncfusion]
Replied On August 25, 2017 05: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


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.

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.

;