Thank you for the sample. It was very helpful.
This behavior is by design. The Button's OnClick event is fired before the button's state is changed. Therefore, you see a wrong value of the Down property.
Please refer to the attached sample.
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.