Scale font with grid width

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

    Posted 18 Oct 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.

     

    https://i.imgur.com/sctAk9F.png

  2. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    280 posts

    Posted 21 Oct 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.

    Regards,
    Stefan Nenchev
    Telerik by Progress
    Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top