Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I start doing diagram development in c# [closed]

I'd like to try to create a diagram making tool (something like entity-relation diagram you can create in SQL Server 2005, or class diagrams you can do in Microsoft Visual Studio)

Ie. I'd like to create boxes, put text in them, be able to edit this text and draw lines between boxes.

I never did this kind of programming before so I don't know where to start.

Do I use XAML or create a canvas and go into graphics programming?

I know there are some diagram tools out there but I'd really like to find out of these things by doing it myself.

like image 765
Makach Avatar asked Dec 14 '09 19:12

Makach


2 Answers

WPF/XAML are a great place to start for something like this. You'll want to study WPF in general, with a focus on custom controls (for tables) and drawing lines (for the relationships.)

like image 155
Dave Swersky Avatar answered Sep 19 '22 09:09

Dave Swersky


Well, here is the basis of one on CodeProject, with source and a tutorial. For WPF.

Also see this question.

like image 34
Henk Holterman Avatar answered Sep 19 '22 09:09

Henk Holterman