This is a migrated thread and some comments may be shown as answers.
Scaling Applications c# WinForm
1 Answer 49 Views
This is a migrated thread and some comments may be shown as answers.
Damien
Top achievements
Rank 1
Damien asked on 20 Oct 2017, 11:54 PM

I am still learning as I prepare to code my application from Flash Builder (Flex) to a C# WinForms application and one thing I have on my request list is the scaling of the application.

 

At the moment the Flex app has a fixed size, but one thing I can do is scale everything as the user resizes the app smaller or larger. I want to be able to do this in my WinForms app, but I use a number of PNG graphics (currently) for my buttons and I am looking at changing those to something like an SVG file. So my question is, do the controls (like buttons) support SVG images, is it possible to scale the controls (and my app I guess) as the user resizes the window - or am I going about this the wrong way?

 

One thing I do need to do is ensure that it looks and runs okay on say a Microsoft Surface where the resolution, etc. could make my app look very small.

 

I hope I have explained this well enough, thanks in advance.

Damien

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 23 Oct 2017, 02:27 PM
Hello Damien,

Thank you for writing.

Please consider using windows with docked and auto-sized controls, this way they will keep their proportions once your end users start resizing the application. Considering the vector images, they are not currently supported. A different set of images most probably would be needed if your application would be run on systems with High-DPI like the Microsoft Surface.

Automatic handling of the High-DPI environments is not natively supported by the WinForms technology as it is DPI-unaware. However, our framework supports and you can enable it following the instructions here: https://docs.telerik.com/devtools/winforms/telerik-presentation-framework/dpi-support.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Asked by
Damien
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or