What\'s the best way to convert a WPF (resolution-independent) width and height to physical screen pixels?
I\'m showing WPF content in a WinForms Form (via ElementHo
Just did a quick lookup in the ObjectBrowser and found something quite interesting, you might want to check it out.
System.Windows.Form.AutoScaleMode, it has a property called DPI. Here's the docs, it might be what you are looking for :
public const System.Windows.Forms.AutoScaleMode Dpi = 2 Member of System.Windows.Forms.AutoScaleMode
Summary: Controls scale relative to the display resolution. Common resolutions are 96 and 120 DPI.
Apply that to your form, it should do the trick.
{enjoy}