Daniel Irvine on building software
Button.IsDefault on Silverlight
29 January 2011
If you’re like me, you spend a lot of time chastising UI developers for not following standard UI guidelines, like the one which says dialog boxes should have a default button.
Unfortunately, the Silverlight team at Microsoft seemingly don’t know about that. Yes, shockingly, Button.IsDefault does not exist in Silverlight.
If you get stuck because of this, an attached property will sort you out, as usual. Here’s a related discussion and some sample code:
Attached properties really are the unsung heroes of the WPF/Silverlight platform.