我正在尝试使用路径几何和svg路径剪切pancakeview对象。但是我无法控制形状的大小。路径具有纵横比,这是路径的解决方案,但我需要纵横比或类似的东西来控制剪辑大小。
<Grid HorizontalOptions="Start" WidthRequest="350" HeightRequest="350">
<yummy:PancakeView HorizontalOptions="FillAndExpand" BorderGradientAngle="45" VerticalOptions="FillAndExpand">
<yummy:PancakeView.Clip>
<PathGeometry Figures="M285.257,35.528c58.743,0.286,106.294,47.836,106.58,106.58
c0,107.624-195.918,214.204-195.918,214.204S0,248.165,0,142.108c0-58.862,47.717-106.58,106.58-106.58l0,0
c36.032-0.281,69.718,17.842,89.339,48.065C215.674,53.517,249.273,35.441,285.257,35.528z" >
</PathGeometry>
</yummy:PancakeView.Clip>
<yummy:PancakeView.BackgroundGradientStops>
<yummy:GradientStopCollection>
<yummy:GradientStop Color="#FF0000" Offset="0" />
<yummy:GradientStop Color="#00FF00" Offset="0.5" />
<yummy:GradientStop Color="#0000FF" Offset="1" />
</yummy:GradientStopCollection>
</yummy:PancakeView.BackgroundGradientStops>
</yummy:PancakeView>
</Grid>