Click here to Skip to main content
15,845,367 members
Articles / Desktop Programming / WPF

How to Make WPF Behave like Windows when Dealing with Images (Solving DPI Problems)

Rate me:
Please Sign up or sign in to vote.
5.00/5 (4 votes)
10 May 2023CPOL10 min read 13.3K   7  
WPF design might have been too clever when using DIP (device independent pixels)
WPF tried to be more clever than Windows and introduced DIP, device independent pixels, which should make sure that an image gets displayed in the same size (inches) regardless of the size of the monitor. What sounds like an improvement might be actually a disadvantage. If an image displayed on a laptop screen occupies x inches, it should not have the same inch size on a mobile phone nor on a TV. This article explains how to make WPF behave more like Windows.


Daily Counts


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Written By
Software Developer (Senior)
Singapore Singapore
Retired SW Developer from Switzerland living in Singapore

Interested in WPF projects.

Comments and Discussions