This is a migrated thread and some comments may be shown as answers.

DPI Scaling

1 Answer 435 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Boneshaker
Top achievements
Rank 1
Boneshaker asked on 03 Apr 2016, 09:24 PM

When a user changes their screen scaling either by resolution or DPI settings the following works for native windows controls but not for Telerik -- why is this?

 

            this.AutoScaleMode = AutoScaleMode.None;
            foreach (Control c in Controls)
            {
                c.Font = new Font("Segoe UI", 9);
            }

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 07 Apr 2016, 06:59 AM
Hi Boneshaker,

Thank you for writing.

The DPI scaling mechanism works differently in Windows Forms. It basically calculates a scaling factor depending on the system settings on which the form has been designed and the system on which the application is run.

The application also needs to be declared as DPI-aware. We have a nice blog post discussing in details this topic: WinForms Scaling at Large DPI Settings–Is It Even Possible?

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

Regards,
Hristo Merdjanov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Boneshaker
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or