Silverlight 3 and the Bindable Attribute

You may see a number of videos and sample code for Silverlight 3 that uses the Bindable  attribute to specifying editing features of an entity property when working with the Silverlight DataForm control. However, the Bindable attribute (as well as the System.ComponentModel assembly) were removed from Silverlight with the Silverlight 3 RTM.

Now, if you want to specify if an entity property you are binding to should be readonly, set its Editable attribute like this:



public DateTime BirthDate { get; set; }

If you want to specify that a user interface control should not be automatically generated for a particular entity property, set its Display attribute like this:



public int EmployeeID { get; set; }

Best Regards,
Kevin McNeish
Chief Architect, MM .NET Application Framework
Oak Leaf Enterprises, Inc.

One thought on “Silverlight 3 and the Bindable Attribute

Leave a Reply

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