【发布时间】:2014-11-28 05:47:40
【问题描述】:
我在我的 xaml 中有一个按钮定义为
<Button BorderBrush="Transparent" Click="Menu_Btn" Margin="71,584,0,-2" Height="36" Width="38" Padding="0">
<Image Source="Assets/menu.png" Stretch="UniformToFill" Height="36" Width="38"/>
</Button>
可以看出,我专门设置了按钮的高度和宽度等于图像,但是在 xaml 中它不能正确地包装图像并显示更多的宽度和高度。怎么回事?
为什么这个框更大,为什么我不能正确设置margin而不是40,我必须给71个值。
【问题讨论】:
标签: c# html windows-phone-8