From Dave Relyea's blog, Pixel Snapping in Silverlight as an attached behavior:

 

http://blogs.msdn.com/devdave/archive/2008/06/22/Using-an-Attached-DependencyProperty-to-Implement-Pixel-Snapping-as-an-Attached-Behavior.aspx