How to set form Background as transparency in portable cross platform xamarin form?

前端 未结 3 994
别那么骄傲
别那么骄傲 2021-01-12 07:10

I am using Portable xamarin cross platform. I have two project android and IOS.

I have to make form as transparent form. I have written code for same and this code p

3条回答
  •  无人共我
    2021-01-12 08:03

    Even simpler solution would be to just change the hex values of the alpha channel.

    FBC1BC is a solid color but #00FBC1BC is a transparent, due to 00 which set the alpha of the color to 0 or transparent.

    So just do this #FBC1BC > #50FBC1BC

    And you will get a transparent background color with alpha defined by the first two values!

提交回复
热议问题