We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to modify the Needle length of the RadialGauge?

Platform: WinForms |
Control: RadialGauge |
Published Date: September 4, 2018 |
Last Revised Date: September 4, 2018

At present there is no direct option to customize the Needle Length in RadialGauge control and it is possible to modify the length of the needle using CustomRenderer support, which helps to customize all the elements appearance in RadialGauge.


The following steps will guide to achieve this requirement.


Step 1: Create a Custom control derived from the RadialGauge and implement property to customize the Needle Length.


For example


Here implemented a property named NeedleLength, to customize the NeedleLength.


Code Example[C#]





Step 2: Create Custom Renderer class derived from the IRadialGaugeRanderer and this class will help to custom draw RadialGauge control. In this class, Needle drawn using function named DrawNeedle and here Needle Length is customized.






Step 3: Here we are applying NeedleLength in customized RadialGauge.












C#: RadialGauge_Needle_Customization_C#


VB: RadialGauge_Needle_Customization_VB

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon