Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何以 cm mm 为单位设置 WPF 文档查看器的页面大小?
1cm = 37.8 设备独立像素。因为在 WPF 中,你在 DIP(Device Independent Pixels)中计算,这个值是常数,你可以依赖它。因此,您可以将您的 cm 值乘以 37.8,并得到您要寻找的值。完整性:96DIP = 1 英寸;