Xamarin.Forms - How To Achieve 45 deg. Angled Background Color

前端 未结 2 1852
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-11 23:50

Using Xamarin.Forms, how would I achieve the following angled background without using an image:

2条回答
  •  醉酒成梦
    2020-12-12 00:26

    There is no way to define a gradient in Xamarin Forms. Your best bet would be to use an image. However, you could also try writing a custom renderer that used the underlying platform API to draw a gradient background.

    Here is a thread that discusses using the custom renderer approach.

提交回复
热议问题