Xlabs Checkbox: How to change checkbox background color when checked

AnneAnne USMember
edited August 2017 in Xamarin.Forms

I am hoping someone can explain to me how to change the Xlabs checkbox backtground color, when the checkbox is checked.

Currently the checkbox background color is red. I would like it to be green.

I have attached what I think is the pertinent code for review, as txt files.

Thank you,
Anne

Best Answers

  • AnneAnne US
    Accepted Answer

    Thank you so much @N_Baua,

    That makes me very happy. I just experimented with a quick change. See image below... and I now the checkbox is green when I check it.

    Best Regards!
    Anne

Answers

  • AlessandroCaliaroAlessandroCaliaro ITMember ✭✭✭✭✭
    I think you can take a look to checkbox code, add it to your project and modify the color
  • AnneAnne USMember

    Thank you, Alessandro, for leading me to find the following:

    https://github.com/XLabs/Xamarin-Forms-Labs/blob/master/src/Forms/XLabs.Forms/Controls/CheckboxCell.cs

    I will let you know when I have it working.

    Anne

  • AnneAnne USMember
    Accepted Answer

    Thank you so much @N_Baua,

    That makes me very happy. I just experimented with a quick change. See image below... and I now the checkbox is green when I check it.

    Best Regards!
    Anne

  • N_BauaN_Baua INMember ✭✭✭✭✭
    edited August 2017

    @Anne,

    Thank you so much @N_Baua,

    You're welcome my friend, please mark your post as well as an answer, so people looking for help on the same can decide,quickly.

    -- N Baua

Sign In or Register to comment.