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

Gauge can not see

i'm add  Syncfusion.SfGauge.XForms to reference
but i cannot see gauge
SfCircularGauge circularGauge = new SfCircularGauge();
            if (Device.OS == TargetPlatform.iOS)
              circularGauge.HeightRequest = 200;
                circularGauge.VerticalOptions = LayoutOptions.FillAndExpand;

            ObservableCollection<Scale> Scales = new ObservableCollection<Scale>();
            Scale scale = new Scale();
            scale.StartValue = 0;
            scale.EndValue = 100;
            scale.StartAngle = 180;
            scale.SweepAngle = 180;
            scale.RimThickness = 40;
            scale.RimColor = Color.FromRgb(86, 86, 86);
            NeedlePointer pointer = new NeedlePointer();
            pointer.Value = 70;
            pointer.Thickness = 5;
            pointer.KnobRadius = 20;
            pointer.LengthFactor = Device.OnPlatform(1, 1, 1);
            pointer.Color = Color.FromRgb(226, 226, 226);
            pointer.KnobColor = Color.FromHex("#FFE2E2E2");
            RangePointer rPointer = new RangePointer();
            rPointer.Value = 70;
            rPointer.Color = Color.FromHex("#FF00B2DB");
            rPointer.Thickness = 40;
            List<Pointer> pointers = new List<Pointer>();
            scale.Pointers = pointers;
            scale.ShowTicks = false;
            scale.ShowLabels = false;
            circularGauge.Scales = Scales;
            circularGauge.GaugeType = GaugeType.North;
            Content = circularGauge;

3 Replies

SP Sivakumar Punniya Moorthi Syncfusion Team October 12, 2016 06:09 AM UTC

Hi Orhan,

Thanks for your interest in Syncfusion products.

As per the provided information we are unable to reproduce the issue . We have prepared sample for the same and it can be downloaded from the below link.

Sample Link : CircularGaugeSample 

If the provided Sample does not meet your requirement, could you please modify the provided sample and its replication procedure . It will be very helpful for us to analyse on it and provide you the possible solution.

Please let us know if you have any queries.

Sivakumar P.

JM Jairo Martins Marques April 3, 2017 05:33 PM UTC

I used this sample code CircularGaugeSample  in my Xamarin Studio for Mac and it works properly but after I upgrade Xamarin Forms package to version it doesn't work any more. App doesn't load and without any warning or error.-----------------------------ps. After delete both bin and obj folder from pcl and iOS projects everything works properly again.

AK Ashwin Kumaravel Syncfusion Team April 4, 2017 08:28 AM UTC

Hi Orhan,

We are glad to know that you have met your requirement. Please let us know if you have any queries.


Live Chat Icon For mobile
Up arrow icon