In my code I'm trying to run something targeting only the original clicked item in the Checked event. I thought that since the ability to see the original item was added I could just do the following:
But recently I noticed that the OriginalSource and Source are the same every time. So if I have TriStateMode enabled and I have 4 levels of items it will fire off four checked events (Level 3 -> Level 2 -> Level 1 -> Level 4) and in each one the OriginalSource and Source are the same value of that level.
If this is not how I check the originally checked item, how am I supposed to do so?
if
(e.OriginalSource == e.Source)
{
//Code
}
But recently I noticed that the OriginalSource and Source are the same every time. So if I have TriStateMode enabled and I have 4 levels of items it will fire off four checked events (Level 3 -> Level 2 -> Level 1 -> Level 4) and in each one the OriginalSource and Source are the same value of that level.
If this is not how I check the originally checked item, how am I supposed to do so?