Is using Margins to align things where I want them a problem on Windows Phone 7?
My alignment depends on resolution, font size etc. However, I am setting the font size, and all Windows Phone 7 phones have the same resolution. So is what I am doing a problem? Could the alignment breakdown on certain phones?
Thanks
While there is the potential for issues (see What is the best strategy to manage different screen resolutions in Windows Phone 7?), it’s not something we can or should be too concerned about.
Previous plans for HVGA devices have been suspended but it’s very likely we’ll see different screen sizes or resolutions at some point in the future. At that point we’ll likley have to worry about the consequences of setting margins or specific positions but until then either should be fine.
Note that use of Margins will make supporting both landscape and portrait orientations more easily. It will likley also make moving items within the visual tree easier without undue consequences.
Also be aware that you need to consider possibel issues when trying to get pixel perfect positioning of text (especially if it wraps) when that text is localized for different countries and/or languages.