在Windows Phone 8中,我想将图像放在
一个圆圈中.是否有
一个像网格一样的圆形容器?我知道有椭圆位,它不是
一个容器
我就是这样做的.
<Ellipse Width="100"
Height="100">
<Ellipse.Fill>
<ImageBrush>
<ImageBrush.ImageSource>
<BitmapImage UriSource="/YourImage.png" />
</ImageBrush.ImageSource>
</ImageBrush>
</Ellipse.Fill>
</Ellipse>
作为最佳实践,请考虑将DecodePixelWidth和DecodePixelHeight设置为与椭圆相同的大小.