<Image Source="sampleImages\Waterlilies.jpg" Width="200" Height="150" HorizontalAlignment="Left"> <Image.Clip> <EllipseGeometry RadiusX="100" RadiusY="75" Center="100,75"/> </Image.Clip> </Image>
<Border CornerRadius="50" Margin="20" BorderBrush="Blue" BorderThickness="5" > <Border .Background> <ImageBrush ImageSource="Images/Chrysanthemum.jpg"/> </Border .Background> <Grid> </Grid> </Border>
你直接在 Grid 里边放一个 Image 就能做为背景了,不用设置 Background。
用OpacityMask,比如 http://wpf.2000things.com/tag/opacitymask/
111,112
社区成员
642,555
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧