I have a sample dataform and I would like to remove the ability to add and remove records from the form.
Apparently in Silverlight 3 there were 2 attributes to the dataform “CanUserAddItem” & “CanUserDeleteItem”. Those attributes don’t seem to exist anymore.
Any suggestion on how to make those buttons go away!
cheers,
If you can change the ObserableCollection you are using as the ItemsSource to a ReadOnlyObserableCollection I think the DataForm is see this and remove the Add and Delete buttons.
Edit
Going a little Googling, I found a property named
CommandButtonVisibility. I haven’t upgraded to Silverlight 5 yet, so I don’t know if this is still in the DataForm, but it might work for you.