WPF document viewer page size
How to set page size for WPF doc开发者_JS百科ument viewer in cm mm?
1cm = 37.8 Device Independent Pixels. Because in WPF, you calculate in DIP (Device independent Pixels), this value is constant, you can rely on it. Therefore you can multiply your cm-value with 37.8 and you get the value your looking for. For completness: 96DIP = 1inch;
精彩评论