设计中的Wpf图片放置不等于实际程序。 [英] Wpf picture placement in designer not equivalent to the actual program.

查看:72
本文介绍了设计中的Wpf图片放置不等于实际程序。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在WPF的设计师中精确地放置了一些图片,当我构建并运行程序时,图片有几个像素......

有什么方法可以让设计师更准确或者你必须打印屏幕程序转到图像编辑程序并测量像素直到你做对了吗?

它是如此令人不安

提前谢谢



我尝试了什么:



设计师中的WPF图片放置不等于实际程序。

I precisely placed some pictures in the designer of WPF and when i build and run the program the pictures are off several pixels...
is there any way to make the designer more accurate or you have to print screen the program go to a image editing program and measure pixels until you get it right?
it's So disturbing
Thanks in advance

What I have tried:

WPF picture placement in designer not equivalent to the actual program.

推荐答案

将图像放置在设计器中,而不是去获得像素完美放置。设计师是一个SCALED显示器,所以你没有看到你实际上没有将图像准确地放在你想要的位置。



如果你想要完美的位置,你通过直接编辑XAML中的值或设置代码隐藏中的值来实现。
Placing images in the designer in NOT the way to go about getting "pixel perfect" placement. The designer is a SCALED display so you're not seeing that you've actually not placed the images exactly where you want them.

If you want perfect placement, you do it by directly editing the values in XAML or setting values in the code-behind.


这篇关于设计中的Wpf图片放置不等于实际程序。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆