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

Radial gauge background stretch problem

3 Answers 180 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 2
Dan asked on 28 Oct 2011, 03:04 PM
I have a half-circle radial gauge that is contained in a panel.  The problem is that when the panel is resized, the gauge background and the gauge scale stretch independently, giving odd visual results.  See the two attached images.  I have tried setting a variety of gauge properties, but cannot get a result where the two resize with the same aspect ratio.

Thanks for any help on this.
Dan

3 Answers, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 01 Nov 2011, 03:04 PM
Hi Dan,

Unfortunately the semicircle gauge does not keep the same aspect ratio when its container is resized. So, the only way to fix width and height of the radial gauge is when it is resized. I have attached a sample solution which uses additional Grid container to keep the aspect ratio of gauge when the Grid is resized.
I hope it helps.

Best wishes,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Dan
Top achievements
Rank 2
answered on 04 Nov 2011, 09:08 PM
Yes, this does work.
An alternative solution that I found is to enclose the Gauge in a Viewbox with Stretch="Uniform".  This also works!
Thanks.
Dan
0
kaliprasad
Top achievements
Rank 1
answered on 17 Apr 2018, 11:27 AM

hi Dan,

Could you please send me style that you used for the first image (semicircle gauge).

It is really impressive. 

Thanks in advance

Tags
Gauges
Asked by
Dan
Top achievements
Rank 2
Answers by
Andrey
Telerik team
Dan
Top achievements
Rank 2
kaliprasad
Top achievements
Rank 1
Share this question
or