Updating the value of RangePointer in Xamarin.Android

I'm having difficulties trying to find out how to update the RangePointer.Value, I need to update the value every 5 seconds or so, but what I think is happening is that you cannot update the RangePointer.Value property once it is added to the Pointer (Which is an ObservableCollection), is there any way I can update the RangePointer.Value in real time or in interval?

Here is my line of code if it helps.

 ObservableCollection<CircularPointer> Temp_Pointer = new ObservableCollection<CircularPointer>();
            RangePointer TempRange_Pointer = new RangePointer();
            TempRange_Pointer.Color = Color.ParseColor("#00BCD4");
            TempRange_Pointer.Offset = 0.97;
            TempRange_Pointer.Width = 7;

            TempRange_Pointer.Value = (double)29.7;
            
            Temp_Pointer.Add(TempRange_Pointer);

            Temp_Scale.CircularPointers = Temp_Pointer;
            Temperature_Gauge.Headers.Add(Temp_Header);
            Temperature_Scale.Add(Temp_Scale);
            Temperature_Gauge.CircularScales = Temperature_Scale;

            FindViewById<LinearLayout>(Resource.Id.linearLayout_Temp).AddView(Temperature_Gauge);

2 Replies

MC Michaelangelo Caracta February 22, 2018 01:48 AM UTC

Nevermind, I solved the problem by placing all of the declarations outside of the void method and turned it into a globally declared variables. thanks!


SG Sri Gayathri Gopalakrishnan Syncfusion Team February 22, 2018 07:26 AM UTC

Hi Michaelangelo,

Thanks for your response, we are glad that the issue has been resolved and please get back to us if you need any other assistance.

Regards,
Sri Gayathri.G

Loader.
Up arrow icon