Archive for category SilverLight
RIA Services Overview
Posted by Michal Pisarek in SilverLight on October 4, 2009
So for the last couple of weeks I have been doing some work with Silverlight RIA Services which has been very cool. So Im going to start to do a series of posts on RIA services in order to document what I have done!
RIA Services Downloads
- RIA Services 2009 Preview: This is actual RIA services framework which you need. Make sure that you also download the RIA Services Overview pdf which is a wealth of information.
- Microsoft SilverLight 3 Toolkit: You need this as well for RIA services to run
- SilverLight Tools for Visual Studio 2008 SP1: And you need this as well.
Optional Stuff for RIA Services and SilverLight 3
- Microsoft Expression Blend 3 + SketchFlow Trial: You definatly want Expression Blend to do graphical manipulation of SilverLight controls, currently this isnt supported in Visual Studio so this is your only option.
- SilverLight Spy: Allows you to decompile SilverLight xap files back to their component bits, much like the awesome reflector for .NET binaries.
Note Worthy Blogs
- Brad Abrams: One of the best out there, he has a 25 part series on RIA Services that proved invaluable.
- http://www.nikhilk.net/: Another great blog that covers SilverLight 3 as well as RIA
- Scott Hanselman: More goodness
- Jesse Liberty: Some more really good RIA focused stuff
- Tim Heuer: Another great blog with tutorials
- SilverLight News: Not a blog but a compilation of SL released articles.
All of the above blogs contain some great information and since I cant thank them in person here it is “Thanks guys for all your amazing work and help!”
Help I’m Stuck (Great Forums)
- SilverLight.NET RIA Forum: The place to go, some extremly knowledgable people here that can help you out.
- StackOverflow: Some good stuff in here as well both on RIA and SilverLight in general
Shameless Self Promotion
- Of course in this blog there will, hopefully, be some RIA and SilverLight stuff that will inspire you, just click here to see!
How to remove the validation summary from a dataform
Posted by Michal Pisarek in SilverLight on October 2, 2009
>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!!
If you get the ‘The Silverlight project you are about to debug users RIA services. RIA services will fail unless the Silverlight project is hosted in and launched from the same web project that contains the RIA services’
Posted by Michal Pisarek in SilverLight on September 28, 2009
I sometimes get this, especially when checking out the latest version from my subversion repository but its easy to fix.
The actual error will look like this:
So to fix it you need to do a couple of things:
- Set the start up project to the Web project by clicking on the Project and choosing ‘Set as Start Up Project’
- Not necessary but set a start up page as well, in RIA this will be called “ApplicationName.aspx”
Thats it, you should now be ready to go!!







