March 2010 Blog Posts

RIA Services - Documentation Guidance and Community Samples

As the RIA Services team is wrapping up our V1 release, several team members have been diving into the forums, writing blog posts, and in general trying to connect with the community to make sure we’re tying up all of our loose ends.  We would also like to make sure that we have our documentation bases covered, but we’d like to solicit some candid feedback for this area in particular. Documentation Approaches What forms of documentation would you like to see us work on?  Do you like quick-start tutorials, or do you prefer deep-dives?  How would you prioritize...

posted @ Tuesday, March 30, 2010 7:20 PM | Feedback (11)

DomainDataSource in a ViewModel

As I was writing up a response to the questions on a forums post about using DomainDataSource from a ViewModel, I thought I should just publish the notes here.  I hope this helps people understand what will and will not work from the DomainDataSource when being used outside the visual tree. I've heard many times that people are using the DomainDataSource in ViewModel scenarios.  Contrary to popular belief, this can work very well with the control as it is today; there are only a couple features that won't work outside the visual tree.  Aside from these two items, everything...

posted @ Sunday, March 21, 2010 9:05 PM | Feedback (14)

Writing a Custom Filter or Parameter for DomainDataSource

This post comes to you from a guest writer, Kyle McClellan.  Kyle works with me on the RIA Services team and he’s contributed to the DomainDataSource feature (among many other features in the framework).  Kyle made the changes that allowed us to remove ControlParameter and use ElementName bindings for FilterDescriptor and Parameter that I recently blogged about. Now that the ControlParameter has been properly disposed of, you might have noticed that Parameter has changed substantially. Before, a Parameter was used for filtering, grouping, sorting, and querying. Now it is only used in the last case. If you...

posted @ Thursday, March 18, 2010 4:14 PM | Feedback (4)

DomainDataSource Filters and Parameters

Of all changes that made it into the RIA Services RC release, one of the ones that I'm happiest about is the deletion of a class called ControlParameter.  Yes, ControlParameter is gone, gone, gone--finally!  If you’re wondering how you’ll get your UI-based filters and parameters to work without ControlParameter, do not fret… it’s easy; just use an ElementName binding! Let’s take a look at the changes related to Filters and Parameters… ControlParameter is gone… Good Riddance! Since the inception of RIA Services, the DomainDataSource control has relied upon ControlParameter tags for specifying Filters and Query Parameters that...

posted @ Monday, March 15, 2010 7:24 PM | Feedback (26)

ContosoSales Application for RIA Services RC

With the release of the RIA Services Release Candidate, it was time to refresh the ContosoSales application that was first shown in the PDC keynote.  Let’s take a look at the changes made to move to the new release. The steps below are based on having downloaded the styled ContosoSales application from PDC.  If you want to cut to the chase and download the new version of the solution, you can grab it here for use with the RIA Services RC bits. Changes to References In trying to migrate the application, the first thing we notice is...

posted @ Monday, March 15, 2010 1:20 PM | Feedback (7)

Lookups in DataGrid and DataForm with RIA Services

While off reading random blog posts on the tubes, I stumbled upon a post that describes a 101-level scenario of using lookup data in the DataGrid and DataForm with RIA Services.  The author was struggling to find a solution for the problem and was clearly frustrated. The scenario is very common; let’s use the Cars example where every Model refers to its Make. We want a DataGrid that includes the make name as a column: And we want a DataForm with a ComboBox for the Make:   ...

posted @ Friday, March 12, 2010 5:38 PM | Feedback (31)

Quickly Changing Your Visual Studio Theme

Do you have multiple personalities in Visual Studio?  I do.  And so do I.  I like to code with a dark background;I like to send people code snippets using more traditional colors. Awhile back, I wrote about how to quickly change profiles in Visual Studio, but with Visual Studio 2010, the approach changes slightly.  Here’s an update for how to toggle VS between different font/color themes, or other settings. Here’s what we’re going to do: Write a macro to export the current settings, to allow for easy backups Write a method...

posted @ Tuesday, March 9, 2010 1:51 PM | Feedback (2)

Using TortoiseMerge for Diff/Merge

I’m a big fan of using TortoiseMerge from TortoiseSVN for diff/merge operations.  After repaving my machine the other day, I noticed that some command-line tools that I use for our internal processes were ignoring the fact that I’d configured Visual Studio 2010 to use TortoiseMerge.  It turns out that some of these tools are checking the 9.0 branch in the registry.  Since I don’t have Visual Studio 2008 installed, I didn’t have an IDE way of changing those preferences.  Off to the registry we go. Warning: Changing your registry might kill your cat, blow your graphics card, or make...

posted @ Monday, March 8, 2010 1:32 PM | Feedback (2)

First 2010 Machine Repave

It had been a long time since I’d repaved my primary workstation at the office, and it was getting cranky.  It was time to nuke my system drive and get a clean start with stable bits.  For fun, I thought I’d jot down what I reinstalled this go-round, in the approximate order of installation. Google Chrome (as default browser) Google Chrome IE Tab Classic Extension Custom Ninite Installer (Thanks to Nick Gotch (@pszNicx) for the reminder about this tool) ...

posted @ Friday, March 5, 2010 5:51 PM | Feedback (2)