在XAML中解决边距问题的指南

在XAML中解决边距问题的指南,xaml,windows-phone-7,Xaml,Windows Phone 7,谁能给我一个解决保证金问题的指导? 我是XAML的新手。我混淆了左、上、右、下 谢谢你的建议 请参阅此MSDN文档: 页边距由左、上、右、下设置 可以为所有角度设置值,也可以指定每个角度 //SETS A MARGIN OF 10px in all four directions <Grid margin="10"></Grid> //SETS A 10px margin left, 15px margin top, 10px margin right and 15px

谁能给我一个解决保证金问题的指导? 我是XAML的新手。我混淆了左、上、右、下


谢谢你的建议

请参阅此MSDN文档:


页边距由左、上、右、下设置 可以为所有角度设置值,也可以指定每个角度

//SETS A MARGIN OF 10px in all four directions
<Grid margin="10"></Grid>

//SETS A 10px margin left, 15px margin top, 10px margin right and 15px bottom 
<Grid margin="10, 15, 10, 15"></grid>
//在所有四个方向上设置10px的边距
//设置左10px边距、上15px边距、右10px边距和下15px边距