DPI Scaling

2 posts, 0 answers
  1. Boneshaker
    Boneshaker avatar
    5 posts
    Member since:
    Mar 2015

    Posted 03 Apr Link to this post

    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

  2. Hristo Merdjanov
    Hristo Merdjanov avatar
    678 posts

    Posted 07 Apr Link to this post

    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.

    Hristo Merdjanov
    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
  3. DevCraft banner
Back to Top