Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 9-Apr-19 7:28am
Comments
[no name] 9-Apr-19 11:01am    
There could be any number of reasons; not just ONE.

Since you show no xaml or code, one cannot tell what is what. And, we only have your word for what only YOU can SEE.
tool__ 9-Apr-19 14:54pm    
Thanks for giving me a hint that I do something wrong, I experimented with layout in the properties and things got better

1 solution

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.
 
Share this answer
 
v2
Comments
Maciej Los 9-Apr-19 13:43pm    
5ed!
tool__ 9-Apr-19 14:49pm    
exactly what was afraid, thanks for answers guys

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900