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

Unable to view the gauge in a viewbox

Thread ID:





130202 Apr 27,2017 09:47 AM UTC May 1,2017 08:53 AM UTC WPF 3
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?



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


Please get back us if you have any concern


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

Dear Ashwin,

thanks a lot for your sample and your help.


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.


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

or the page will be automatically redirected to 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