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

Create HalfCircle Gauge Programatically

2 Answers 87 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
gradford
Top achievements
Rank 1
gradford asked on 05 Nov 2009, 04:36 PM
Is there any way to create a half-circle gauge in C#? All the examples I have found use XAML to clip the foreground and the background to emulate a half-circle. I have the StartAngle and SweepAngle both set to 180, but it still appears to be a full-circle gauge.

2 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 06 Nov 2009, 11:24 AM
Hi Garrett,

The XAML examples contain styles you can setup with C# code to display half-circle and quarter-circle gauges.
I have attached the sample solution that creates half-circle gauge in C# code. Please see the AddRadGauge method.

Best wishes,
Andrey Murzov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
gradford
Top achievements
Rank 1
answered on 06 Nov 2009, 04:39 PM
Andrey, you're saving my life here. Thanks again for your extremely prompt response. This is excellent!
Tags
Gauge
Asked by
gradford
Top achievements
Rank 1
Answers by
Andrey
Telerik team
gradford
Top achievements
Rank 1
Share this question
or