DCSIMG
November 2007 - Posts - Essential WPF

November 2007 - Posts

5
Comments

WPF is DPI Dependent by Tomer Shamam

<Button Content="Click me!" Width="100" Height="100" /> Do you really know how many pixels in the button's width and height? Clicking F1 on Width and Height properties in Visual Studio, it is written that the "value is interpreted as a device-independent unit (1/96th inch) measurement". Now, the default value of DPI (dots per inch) in a default Windows installation with a simple Monitor is 96. Now let's calculate how many pixels you have: px ...
תגים:,
Powered by Community Server (Commercial Edition), by Telligent Systems