>When creating forms with SilverLight 3 an really handy new way of doing this is by using the dataform object.
Essentially a dataform object can automatically create a form that a user can input data into and then save it to the current context before submitting changes.
I was recently creating an interface to Active Directory for one of my clients and was using a lot of the new validation features in RIA Services (which I will talk about latter) but there was one thing that I didn’t like about the dataform, the summary on the bottom like shown below:
Since there already is a visual clue to the user in the form of the highlighted box I thought that this was overkill.
The question is how to get rid of it and there are actually a couple of ways, with Expression Blend and through Visual Studio but unless there is interest Ill only show the expression blend way.
Expression Blend 3 Way
- Open the page in Expression Blend 3.
- Right click on the dataform and then select Edit Additional Templates -> Edit ValidationSummaryStyle->Edit a copy like below
- Choose where to save the style (doesn’t really matter, I actually like to keep it in the page) and then remove the SummaryListBox as seen below:
And you are done, by the way you can also completely change how the summary items are presented in here as well but lets wait for another time.
So once this is done we remove the summary but still have the coolness of the red highlighted boxes which is awesome!!
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.





Hi, can you please post the code version of removing the Validation summary?
Thanks,
Dima
The problem was solved programmatically by adding next style to dataform:
where “dft” is xmlns:dft=”clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit”
and “my” is xmlns:my=”clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input”
Enjoy