The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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?
AKAshwin Kumaravel Syncfusion Team 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.