Jun
8
Written by:
DigitalRune Team
Tuesday, June 08, 2010
If you don’t know how to create class diagrams for the XNA classes in Visual Studio, here is a quick summary of the process.
Prerequisites
You need Microsoft Visual Studio 2008 Professional Edition or better. I think you cannot create class diagrams in the Express editions. Correct me if I am wrong.
Steps
- Create a new XNA Game Project in Visual Studio 2008 (Professional).
- Add an empty Class Diagram to the project: Right click on project in Solution Explorer | Add | New Item… | Class Diagram
- Open the “Object Browser”.
- Browse to the XNA Framework Assemblies:
- Drag-and-drop a namespace or individual types from the Object Browser to the empty class diagram.
Simple. The only “surprising” thing for me was that you can drag-and-drop items from the Object Browser onto class diagram.