Forum Discussion

juansturla's avatar
juansturla
Copper Contributor
Nov 05, 2021
Solved

How to clip a View using XAML Style?

I have in my code several times this code   <Image Aspect="AspectFit" HeightRequest="75" WidthRequest="75"> <Image.Clip> <EllipseGeometry Center="37.5,37.5" RadiusX="37.5" RadiusY="37.5" /> </Imag...
  • jfversluis's avatar
    Nov 05, 2021

    juansturla 

     

    I think you should be able to do it like this:

    <Setter Property="Clip">
        <EllipseGeometry
             Center="37.5,37.5"
             RadiusX="37.5"
             RadiusY="37.5" />
    </Setter>

Resources