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:

http://stackoverflow.com/questions/2683891/silverlight-4-default-button-service

Attached properties really are the unsung heroes of the WPF/Silverlight platform.

Tagged with:
 

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>