Scale font with grid width

2 posts, 0 answers
  1. Dan
    Dan avatar
    1 posts
    Member since:
    Oct 2016

    Posted 18 Oct 2016 Link to this post

    What I'd like to do is to be able to set it so the amount of text displayed in the columns is fixed and when the grid is resized the size of the font changes to keep the text displayed in each row fixed while having the number of rows shown vary as needed.

    Using your Binding to 1 Million records Sample to show what I want, I took a screenshot stretched the grid by 50% in height and width to simulate text enlarging
    as the window was widened, and then cropped out 5.5 of the 17 rows of data so that the number of rows visible was reduced because the height wasn't changed.


  2. Stefan Nenchev
    Stefan Nenchev avatar
    540 posts

    Posted 21 Oct 2016 Link to this post

    Hi Dan,

    Please check the following MSDN blog - UI Scaling(UI Zooming) with WPF as I believe it will help to achieve your requirement. I have also attached a sample project for your reference.

    Stefan Nenchev
    Telerik by Progress
    Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
Back to Top