Create HalfCircle Gauge Programatically

3 posts, 0 answers
  1. gradford
    gradford avatar
    7 posts
    Member since:
    Nov 2009

    Posted 05 Nov 2009 Link to this post

    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. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 06 Nov 2009 Link to this post

    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.
  3. DevCraft banner
  4. gradford
    gradford avatar
    7 posts
    Member since:
    Nov 2009

    Posted 06 Nov 2009 Link to this post

    Andrey, you're saving my life here. Thanks again for your extremely prompt response. This is excellent!
Back to Top