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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Help customizing Linear Gauge like Test Tube with Gradient Fill

Thread ID:

Created:

Updated:

Platform:

Replies:

149663 Dec 4,2019 04:50 PM UTC Dec 12,2019 11:26 AM UTC WinForms 5
loading
Tags: LinearGauge
Harsh
Asked On December 4, 2019 04:50 PM UTC

Hi,

I wanted to use LinearGauge with CustomRenderer to generate Two types of Gauge.

Please check example Images in Example.rar

1. Thermometer which shows celsius and fahrenheit
As above option are given in ASP.net lineargauge like below link from your website.
I want just as same in winforms to show thermometer data with Celsius & Fahrenheit options.

2. Test Tube with Gradient Fill Color option
I wanted to create Test Tube like attached image with gradient color option using CustomRender but not achieved this.
Can you please help with above points. I am sure other will also benefits with this. As both options should be added for WinForms.

Thanks in Advance.



Attachment: Example_1c3ad4c6.rar

Niranjan Kumar Gopalan [Syncfusion]
Replied On December 5, 2019 12:41 PM UTC

Hi Harsh, 
 
Thanks for contacting Syncfusion support. 
 
We are currently analyzing your query regarding “Wanted to use LinearGauge with CustomRenderer to generate Two types of Gauge” and we will update regarding this on December 9th 2019. 
 
Regards, 
Niranjan Kumar 
 


Harsh
Replied On December 7, 2019 11:18 AM UTC

Thanks, I'll wait.

Niranjan Kumar Gopalan [Syncfusion]
Replied On December 10, 2019 09:58 AM UTC

Hi Harsh 
 
Thanks for your Patience. 
 
Please refer below for your query. 
Query 1: 
1. Thermometer which shows celsius and fahrenheit  
As above option are given in ASP.net lineargauge like below link from your website. 
I want just as same in winforms to show thermometer data with Celsius & Fahrenheit options. 
 
We have prepared sample as per your requirement. In the attached sample, we have created Thermometer view linear gauge using custom renderer. Using the sample you can display the gauge values on both side of the linear gauge and also you can customize the gauge value text using  DrawString method used to draw the linear gauge value in custom renderer. Please find the screenshot and sample for the same. 
Screenshot
 
 
 
 
Query 2: 
2. Test Tube with Gradient Fill Color option 
I wanted to create Test Tube like attached image with gradient color option using CustomRender but not achieved this. 
 
 
Currently we are analyzing the possible ways to achieve your requirement using custom renderer and we will update details once we succeed in our solution. 
 
 
Regards, 
Niranjan Kumar 
 


Harsh
Replied On December 11, 2019 09:53 AM UTC

Thanks Niranjan Kumar & SyncFusion Team for your support. Sample Code works great. Thanks to resolve query one & will wait for second query solution.

Niranjan Kumar Gopalan [Syncfusion]
Replied On December 12, 2019 11:26 AM UTC

Hi Harsh,   
  
Thanks for your Patience.  
 
We are glad that our solution to your query ”Want the LinearGauge control  to show thermometer data with Celsius & Fahrenheit options” has met your requirement. We have used ILinearGaugeRenderer interface to create thermometer like gauge to meet your requirement. Similarly you can create the Test tube like gauge using ILinearGaugeRenderer interface referring the below documentation and previously provided sample. Please let us know if you have any queries. 
 
 
Regards, 
Niranjan Kumar 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

Live Chat Icon For mobile
Live Chat Icon