locked
how to get System DPI RRS feed

  • Question

  • Hi

    I want to get System DPI in wpf c#,(i.e) (96,120 etc)and i want to scale app font with respect to that DPI

    Pls provide me a solution regarding this

    Thanks in Advance


    Efforts may fail but don't fail to take effort -------------- sidd

    Thursday, October 25, 2012 5:23 AM

Answers

  • There's no need to do that, the font is automatically scaled in WPF.
    • Marked as answer by Bob_Bao Friday, November 9, 2012 6:47 AM
    Thursday, October 25, 2012 5:53 AM

All replies

  • There's no need to do that, the font is automatically scaled in WPF.
    • Marked as answer by Bob_Bao Friday, November 9, 2012 6:47 AM
    Thursday, October 25, 2012 5:53 AM
  • Hi Mike Thanks for Replying

    My system DPI is 96 (1024,768)

    when i check my solution in other system  having dpi 120% or some other, the font gets diminished

    i want the same font for that in all system  as in my system

    Pls tell me solution regarding this


    Efforts may fail but don't fail to take effort -------------- sidd

    Thursday, October 25, 2012 6:01 AM
  • "when i check my solution in other system  having dpi 120% or some other, the font gets diminished "

    You mean the font gets smaller for 120% DPI? That's odd, it's suppose to be larger.

    "i want the same font for that in all system  as in my system"

    So basically you want your app to actually ignore the setting? That's not a good idea, that DPI setting exists for a reason.

    Thursday, October 25, 2012 6:06 AM