Anders creates a sample grayscale BitmapEffect pixel shader for WPF 3.5 SP1 here. Check it out if you’ve considered creating one of your own (or just curious how you might do it).
He walks through all the necessary steps and provides the source code for download.