如何在Xamarin表单中设置透明背景

时间:2018-08-06 09:11:45

标签: xml xamarin.forms

我有一个要在位图中显示的png图像,但是在运行应用程序时,背景以黑色显示,我想将透明度设置为none,有没有办法做到这一点? 我想要达到的效果是看到应用程序徽标出现在手机主屏幕的中间

1 个答案:

答案 0 :(得分:0)

尝试将图像 BackgroundColor 设置为透明

我希望这会有所帮助。 :)

<Image Source = "your_image.png" BackgroundColor = "Transparent"/>