How I can display images in xaml with only two rounded corners?
<Image x:Name="Image" Height="200" Width="250" Source="image.jpg" Stretch="Fill">
<Image.Clip>
<RectangleGeometry RadiusX="20" RadiusY="20" Rect="0,0,250,200"/>
</Image.Clip>
</Image>
I want only two bottom corner round.
Thanks
Use Border for your Image, and specify CornerRadius property
<Grid>
<Border Height="200" Width="250" CornerRadius="0,0,50,50">
<Border.Background>
<ImageBrush ImageSource="Images/Desert.jpg" />
</Border.Background>
</Border>
</Grid>
And use image as background brush
Here is example with this xaml. Just change ImageSource
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With