I'm not sure if there's something wrong with this approach or not, because it seems so simple but no one's suggesting it.
But I don't see why you can't just use a Frame with IsClippedToBounds set to true. That gives you a built-in corner radius, which you can then adjust as needed.
I had exact same requirement and decided to create custom control called
EntryEx
. You can find the source code HERE.Here is the list of functions that this control supports.
I've created custom renderers for iOS and Android to support this properties. To use the control just do the following.
EntryEx
to your forms project.EntryExRenderer
-s for iOS and Android to corresponding projects.That's all. Enjoy.
I'm not sure if there's something wrong with this approach or not, because it seems so simple but no one's suggesting it.
But I don't see why you can't just use a
Frame
withIsClippedToBounds
set totrue
. That gives you a built-in corner radius, which you can then adjust as needed.I'm currently using this solution and it works for me.
kyurkchyan's solution is bang on, just change the UpdateBackground method in the Android entryRendere to this:
and it will work on Android as well!