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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Unable to view the gauge in a viewbox

Thread ID:

Created:

Updated:

Platform:

Replies:

130202 Apr 27,2017 09:47 AM UTC May 1,2017 08:53 AM UTC WPF 3
loading
Tags: SfDigitalGauge
Simone Sarzano
Asked On April 27, 2017 09:47 AM UTC

Dear Syncfusion Support,

I'm not able to rendere a SfDigitalGauge in a Viewbox, I'm able to view the control in a StackPanel.
Which component should I use to resize a sfdigitalgauge?

Regards,

Simone

Attachment: Desktop_b22fc421.zip

Ashwin Kumaravel [Syncfusion]
Replied On April 28, 2017 07:37 AM UTC

Hi Simone,

Thank you for using Syncfusion Products,

We have validated your query and prepared a sample using DigitalGauge which is placed inside the ViewBox. Since DigitalGauge is drawn using Canvas, we need to set height and width explicitly in order to render the control inside the ViewBox. Adding any graphical primitives into Canvas (for example Rectangle) will not render inside the ViewBox until we set height and width to the element. Because default height and width of the Canvas is Zero.

Check the below link for your references,

Link- https://social.msdn.microsoft.com/Forums/vstudio/en-US/d268dd9d-c349-4a00-bda6-7a6eed27560c/canvas-does-not-displayed-when-inside-viewbox?forum=wpf  

Please download the sample from the below link.

Sample Link-DigitalGauge

Screenshot- 


Please get back us if you have any concern

Regards,
Ashwin.k
 


Simone Sarzano
Replied On April 28, 2017 07:45 AM UTC

Dear Ashwin,

thanks a lot for your sample and your help.

Regards,
Simone

Ashwin Kumaravel [Syncfusion]
Replied On May 1, 2017 08:53 AM UTC

Hi Simone,
We are glad that you have met your requirement and please contact us if you need further assistance.
Regards,
Ashwin.k

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.

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

;