I think checkbox should implement click event besides CheckedChange.
There are a lot of times that you want to distinguish between the user pressing the checkbox and changing it via code.
For example, i use a checkbox to mark/unmark a photo. when i show the photo
1) i read from sqlite if the photo is marked
2) change the checkbox to show the mark status
3) checkedchange fires and executes the code to mark/unmark the photo in sqlite
i know there are various ways to deal with this like implementing the onclick via reflection,
using a flag to dinstinguish between loading state, but i think onlick is the right way, and it should be supported out of the box.
There are a lot of times that you want to distinguish between the user pressing the checkbox and changing it via code.
For example, i use a checkbox to mark/unmark a photo. when i show the photo
1) i read from sqlite if the photo is marked
2) change the checkbox to show the mark status
3) checkedchange fires and executes the code to mark/unmark the photo in sqlite
i know there are various ways to deal with this like implementing the onclick via reflection,
using a flag to dinstinguish between loading state, but i think onlick is the right way, and it should be supported out of the box.