如何在Xamarin.Forms中添加按钮并重叠圆圈图像

时间:2018-07-11 07:05:34

标签: xamarin.forms

如何在Button中将CircleImageXamarin.Forms重叠? 我已经创建了圆圈图像。

enter image description here

1 个答案:

答案 0 :(得分:1)

  <Grid>
                    <ci:CircleImage 
            HeightRequest="120"   
            WidthRequest="120"   
            Source="profile.png"   
            Aspect="AspectFit">

        </ci:CircleImage>
                    <Button Text="Add Photo" CornerRadius="14" Margin="0,0,0,-10" Font="12" HeightRequest="35" BackgroundColor="White" TextColor="Red" HorizontalOptions="Center" VerticalOptions="End"></Button> 
            </Grid>