Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2385
font size in grid
posted

I find the text size in XamDataGrid is smaller than in Word with the same font size and same font family. For example:"Segoe UI", 12:

  • 27093
    posted

    Hello ,

    I am just checking the progress of this issue and if you need any clarifications on the matter.

    If the above suggestion helped you solve your issue please verify the thread as answered so other users may take better advantage of it.

    Sincerely,
    Petar Monov
    Developer Support Engineer
    Infragistics Bulgaria
    www.infragistics.com/support

  • 1990
    Suggested Answer
    posted

    The reason for this difference is that WPF uses pixels as its default unit for font size, as in Word they are points. The mapping between the two of them is 1pt = (96/72) px.

    You can find this simple conversion function useful:

    public static double PointsToPixels(double points)
    {
        return points*(96.0/72.0);
    }

    Sincerely,

    Horen Kirazyan