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

How to use SymbolPointer

Hi,

I just found the SymbolPointer and tried to use it to Display Minimum and Maximum values on a
gauge. But when I use it, Visual Studio tells me that a conversion of  "Syncfusion.SfGauge.XForms.SymbolPointer" 
to "Syncfusion.SfGauge.XForms.Pointer" is not possible.

Here is my code:

SfCircularGauge circularGauge = new SfCircularGauge();

circularGauge.HorizontalOptions = LayoutOptions.CenterAndExpand;

Scale scale = new Scale();

scale.StartValue = 0;

scale.EndValue = 100;

scale.Interval = 10;

scale.StartAngle = 135;

scale.SweepAngle = 270;

scale.RimThickness = 20;

scale.RimColor = Color.FromHex("#FB0101");

scale.MinorTicksPerInterval = 4;

NeedlePointer needlePointer = new NeedlePointer();

needlePointer.Color = Color.White;

needlePointer.KnobColor = Color.White;

needlePointer.Thickness = 5;

needlePointer.KnobRadius = 20;

needlePointer.LengthFactor = 0.8;

needlePointer.SetBinding(NeedlePointer.ValueProperty, "Pressure");

scale.Pointers.Add(needlePointer);

SymbolPointer minPointer = new SymbolPointer();

minPointer.Color = Color.Red;

minPointer.SetBinding(SymbolPointer.ValueProperty, "Min");

scale.Pointers.Add(minPointer);


What am I doing wrong?



3 Replies

NM Nijamudeen Mohamed Sulaiman Syncfusion Team November 20, 2015 05:21 AM UTC

Hi Jens,


Thanks for your interest in Syncfusion products.


As of now, SymbolPointer is not available in SfCircularGauge control for Xamarin. Instead other two types (RangePointer and NeedlePointer) of pointers can be added to CircularScale in SfCircularGauge, to know more about it, please refer the below UG link.


CircularGauge UG link: http://help.syncfusion.com/xamarin/circulargauge/getting-started#create-your-first-circular-gauge-in-xamarinforms


SymbolPointer support is available in SfLinearGauge for Xamarin, where SfLinearGauge and SfDigitalGauge also shares the same namespace (“Syncfusion.SfGauge.XForms”) with SfCirularGauge. To know more about our linear gauge control, refer the below UG link.


LinearGauge UG link: http://help.syncfusion.com/xamarin/lineargauge/getting-started#add-a-pointer


Please let us know, if you have any query.


Regards,

Nijamudeen M.



SI Steve Ingels May 4, 2016 01:02 PM UTC

Are there any plans to add Symbol pointer support for Xamarin Forms users?


Thanks,
Steve


SG Swathi Gopal Syncfusion Team May 5, 2016 10:55 AM UTC

Hi Steve, 
  
 
Yes we have plans to provide Symbol Pointer in the Circular Gauge control Xamarin.Forms, we have logged a feature request for this and it will be implemented in any of our upcoming release. 
  
 
It can be tracked through our Features Management System: 
  
 
  
 
You can communicate with us regarding the open features at any time using the “Contact” option. 
  
Please let us know if you have any concern. 
  
 
Regards, 
  
Swathi G 
  


Loader.
Up arrow icon