Gradient color on button.BackgroundColor

StanislavChankovStanislavChankov USMember ✭✭
edited October 2016 in Xamarin.Forms

How to create button with gradient from 2 colors in Portable Class Library(PCL).
My code is in portable library for now.I think that this custom button renderer should be in the specific platform libraries.I will need approach that i can use this custom renderer class in the portable library.I've already tried with DispatchDraw and OnElementChanged, but i still didn't tried if they work, cuz i don't know how to use them in the portable library.
Maybe this http://stackoverflow.com/questions/37946140/set-gradient-as-button-color-renderer works, but i don't know how to use it in my portable library.

Thank you in advance ^^

Best Answer

Answers

Sign In or Register to comment.