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.
Unfortunately, activation email could not send to your email. Please try again.

How to modify the Needle length of the RadialGauge?

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#]

 

VB

 

 

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.

 

C#

 

VB

 

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

 

MainForm.cs

 

C#

 

VB

 

 

 

Sample

 

C#: RadialGauge_Needle_Customization_C#

 

VB: RadialGauge_Needle_Customization_VB

Article ID: Published Date: Last Revised Date: Platform: Control:
9240 09/04/2018 09/04/2018 Windows Forms RadialGauge
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.