Xamarin Forms: StackLayout with rounded corners

后端 未结 6 1302
故里飘歌
故里飘歌 2020-12-24 10:39

I am developing an app using Xamarin Forms PCL. I need a StackLayout with rounded corners. I have tried frame as well for rounded corner container but there is no corner rad

6条回答
  •  庸人自扰
    2020-12-24 11:25

    I recently had the same need, so I created a Custom Renderer for both iOS and Android. I released it as a Nuget which you can find here. The source code is available on GitHub, and here is a little "How-To"

    Hope this helps! It is very easy to use (Same as a ContentView, which it is at it's base), although note this is compile for .NET Standard, but you can also pull the code into your PCL

提交回复
热议问题