How can I get the real size of the (lcd) display diagonal, i.e. if a it is a 17 inch or 19 inch or other?
问题 This is useful for me because I have to map objects with a correct dimension on screen; if I'm using a 19" lcd with 1280x1024 resolution and a normal 96dpi setting then in order to map a correct 1-inch square I have to write a xaml like this <Rectangle Name="one_inch_side_on_19_inch_diag_display" Height="86" Width="86" Fill="Blue"/> where Width and Height are put to 86 because 86 ~= 96 (dots-per-inch) * 17 (inches) / 19 (inches) as windows assumes 96dpi on a 17" monitor as the base to