Windows store apps 如何在Windows应用商店应用程序中显示圆形图像
我有一个图像控件和一个图像列表,我想在一个圆圈中显示图像。Windows store apps 如何在Windows应用商店应用程序中显示圆形图像,windows-store-apps,Windows Store Apps,我有一个图像控件和一个图像列表,我想在一个圆圈中显示图像。 这意味着我想在我的windows应用商店应用程序中显示圆形图像 是否可能?将图像放置在边框元素内,并设置拐角半径: 对于WinRT/Windows应用商店应用程序: <Ellipse Height="100" Width="100"> <Ellipse.Fill> <ImageBrush Stretch="Uniform" ImageSource="
这意味着我想在我的windows应用商店应用程序中显示圆形图像
是否可能?将图像放置在边框元素内,并设置拐角半径: 对于WinRT/Windows应用商店应用程序:
<Ellipse Height="100" Width="100">
<Ellipse.Fill>
<ImageBrush Stretch="Uniform" ImageSource="url"/>
</Ellipse.Fill>
</Ellipse>
对于WPF:
<Border Height="100" Width="100" CornerRadius="50">
<Border.Clip>
<RectangleGeometry RadiusX="50" RadiusY="50" Rect="0,0,100,100"/>
</Border.Clip>
<Image Source="url"/>
</Border>
不,这并不能解决我的问题,当我写下时,我的图像角显示在边框外。我想剪辑Windows应用商店XAML应用程序中的图像循环。