The Solid Foundation sample will provide you with all the code and examples to set up what you are trying to do.
You can also refer to this thread:
http://xceed.com/CS/forums/thread/11810.aspx
Marc Laroche
Software Developer
Xceed Software Inc.I don’t suffer from insanity, I enjoy every minute of it. - Unknown