How to use the Class Diagram designer in a Silverlight Project
Posted by Guardian in Silverlight Visual Studio on Wednesday 04 February 2009 at 6:41 PM
If you are looking for the class designer when working with a Silverlight project you will notice that apparently you cannot use it, doing right click on the project and selecting ‘add new item’ bring you the following dialog box:
As you can see there’s no Class Diagram option.
The good news is that you can use the designer anyway, you just to do the work of creating the item by hand, following this procedure:
Note: you can always define a template to do the dirty work for you.
The good news is that you can use the designer anyway, you just to do the work of creating the item by hand, following this procedure:
- add a new text file (like ClassDiagram.txt).
- rename it with ‘.cd’ extension (ClassDiagram.cd)
- right click on it and select ‘open with...’ and then ‘notepad’
- copy and paste the following xml snippet
<?xml version="1.0" encoding="utf-8"?>
<ClassDiagram MajorVersion="1" MinorVersion="1">
<Font Name="Segoe UI" Size="9" />
</ClassDiagram>
- Save the document and reopen it double clicking on the item.

#1 da viktore - Saturday March 2010 alle 01:15
you can also simply press on any class and use the "View Class Diagram" option there.