Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have used Labels on top of my screen to which I have assigned margin values in xaml. Its working perfectly alright in my machine, but when I tested my code on other machine the labels are getting shifted to right. I have placed the labels inside a grid. Is there any thing that I am missing. Please help

Thanks
Posted
Comments
[no name] 4-Apr-13 9:21am    
How would we know if you are missing something?
Member 9964896 4-Apr-13 9:46am    
Is there any code or propertly in wpf which gives common alignment for controls, so that evevn in different machines the alignment doesn't changes

1 solution

It is possible that the other machine has their display settings different than you. In Windows 7 the user can use
"Smaller - 100% (default)"
"Medium - 125%"
"Larger - 150%"
Tehse settings can be found by typing display in the search/run command.

When users do this it does make the text larger but alignment often gets messed up. I have chased my tail many times on this to discover they had altered their settings from the default. I would check to see if that is the case. If it is you can atleast see how it will look for those users before you deploy (change the setting and then log off and back on, then run).
 
Share this answer
 
v2
Comments
fjdiewornncalwe 4-Apr-13 14:18pm    
+5. Sound suggestions.

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



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