Windows phone - 图片在中间,文字在底部的平铺
Windows phone - Tile with picture in the middle and text at the bottom
我正在开发 windows phone 应用程序,并希望制作类似于 this.
的东西
我尝试使用方形按钮然后添加图片:
<Button Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="10">
<Button.Background>
<ImageBrush Stretch="Fill" ImageSource="Assets/Marker.png"/>
</Button.Background>
</Button>
但是我没有找到在按钮底部添加文本的方法。
<Button Grid.Row="1"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
VerticalContentAlignment="Bottom" HorizontalContentAlignment="Left"
Margin="10">
<Button.Background>
<ImageBrush Stretch="Fill" ImageSource="Assets/Marker.png"/>
</Button.Background>
Button Text
</Button>
我正在开发 windows phone 应用程序,并希望制作类似于 this.
的东西我尝试使用方形按钮然后添加图片:
<Button Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="10">
<Button.Background>
<ImageBrush Stretch="Fill" ImageSource="Assets/Marker.png"/>
</Button.Background>
</Button>
但是我没有找到在按钮底部添加文本的方法。
<Button Grid.Row="1"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
VerticalContentAlignment="Bottom" HorizontalContentAlignment="Left"
Margin="10">
<Button.Background>
<ImageBrush Stretch="Fill" ImageSource="Assets/Marker.png"/>
</Button.Background>
Button Text
</Button>