I needed my WPF controls size in pixels to retrieve the correct sized image from a web service. The answer hit me one night and it’s very simple:
Create a known size image (say 100 x 100 pixels), put it in a image control on some bit of WPF screen (Hidden not collapsed), ensure no stretching [...]
Archive for the ‘WPF’ Category
WPF Screen Resolution in Pixels
Posted in .NET, WPF on April 7, 2009 | Leave a Comment »