This is a migrated thread and some comments may be shown as answers.

Telerik Xamarin Radial gauge

4 Answers 133 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
Jaison
Top achievements
Rank 1
Jaison asked on 24 Jan 2017, 11:08 AM

Hi,

I am trying to use a radial gauge in Telerik for Xamarin as a radial progress bar using XAML.

But it is aligned to the top left corner of the total space occupied by the element. 

Why is it so?

4 Answers, 1 is accepted

Sort by
0
Accepted
Petar Marchev
Telerik team
answered on 25 Jan 2017, 11:26 AM
Hi Jaison,

The gauge tries to stretch itself into the given space. If you put the gauge in a Grid, the gauge should stretch as much as possible within this grid. However, if you put the gauge inside a stack layout, then it will try to shrink to as little as possible, because of how the stack layout works. So, if in your case the gauge resides in an element that lets the gauge choose its size, the gauge will choose a small size.

If you are using the Beta, you must know that we had not yet taken into consideration the difference between the device true pixels which the SkiaSharp works with and the device independent pixels XamarinForms work with. So, if you are using the Beta, issues like unexpected sizing are, well, expected. You can upgrade to the last official version in which this was addressed.

Let us know if you need further assistance.

Regards,
Petar Marchev
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Jaison
Top achievements
Rank 1
answered on 25 Jan 2017, 12:07 PM
Thanks.
0
James
Top achievements
Rank 1
answered on 05 Apr 2017, 03:06 PM

Hi,

I am trying radial gauge to show the 2 different items on the circle with 2 colors and display the number with text in the middle of gauge and enable user to click on that. May be elevated image like button appearance. Appreciate if you provide me any samples or suggestions.

 

Thanks,

 

0
Petar Marchev
Telerik team
answered on 10 Apr 2017, 02:58 PM
Hi James,

In order to get two different colors in the gauge, you can use one gauge range (for the secondary color, that is the one that does not display the value, but gives context on how large the gauge actually is) and a bar indicator with the main color that shows the actual value. You can then lay a Label on top of the gauge and center it vertically and horizontally. You can then use a tap gesture recognizer to detect taps. I hope this helps!

Regards,
Petar Marchev
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Gauges
Asked by
Jaison
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Jaison
Top achievements
Rank 1
James
Top achievements
Rank 1
Share this question
or