This is the Fifth of twelve questions in The Great Silverlight Competency Test – each of which I believe a competent Silverlight Programmer ought to be able to complete within no more than 1 hour.
Each of the twelve tests will appear on Monday, a viable solution will be provided 10 days later on the following Wednesday.
The solution I provide will tell you how to self-score your own solution (each on a scale of 0-100), and at the end I’ll try to provide a metric for the entire experience. 25 points for each bug you find in my code!
On the honor system you may post your scores into the book giveaway and I will give one of the top scorers a copy of the book. (Microsoft employees not eligible, void where prohibited, yadda yadda).
Please feel free to help one another by discussing the problem, ideas and questions in the comments for each exercise.
[ First posting in series here ]
Competency #5 (of 12)
Create a drop-down button.
Your button will have a part to click (with text saying what it will do) and an arrow next to it to drop down a list of alternative actions to take when the button is pressed. Changing the action and then clicking the button changes what happens when the button is pressed. You do not need to actually take the action, just indicate that you have differentiated which action was intended.