I am using the DataForm for an entity with about 40 attributes. I’m happy with how the form displays all but 3 of the attributes. These 3 attributes happen to be lists of items.
I don’t want to have to code out an entire edit template, seems very counter productive.
<dataFormToolkit:DataForm AutoGenerateFields="True" CurrentItem="{Binding XXX, Mode=TwoWay, Source={StaticResource XXXViewModel}}" >
<dataFormToolkit:DataField Label="Client" >
<ListBox ItemsSource="{Binding Client}"></ListBox>
</dataFormToolkit:DataField>
</dataFormToolkit:DataForm>
The the WCF RIA Services includes a Silverlight Business Application project template that demonstrates creating a CustomDataForm where they override
OnAutoGeneratingFieldand modify the field for just the attributes you want. I’ve copied the code here for you to illustrate the idea but I’d suggest you check out the real thing to see how they are using the ReplaceTextBox extension method to deal with the Data Binding as well. Download link.