Reputation: 1
How can I draw a dynamic family tree So that whenever you add or remove a family member, the tree will paint itself
I tried drawing on bitmap but I couldn't draw it Family data in a local database
Upvotes: 0
Views: 383
Reputation: 410
Creating interactive Family Tree is not an easy task, literally it could take years to do it. I would suggest you to use some existing Family tree component like BALKAN FamilyTreeJS. It is very easy to configure and has Edit/Add/Delete/Share etc functionalities build-in. Also you can use it in WinForms or WPF with WebView 2
Upvotes: 1
Reputation: 11322
You could use and call PlantUML as freely available external tool.
PlantUML reads a text input and generates a graphical output in various formats.
Example input:
@startwbs
* Marjory & John I
** Elena & Tom
*** John II
*** Thekla
** Marion & Mustafa
@endwbs
Resulting output:
To use this from within a C# application, you could call PlantUML as external process and import the resulting bitmap graphics file into your C# picture control.
Upvotes: 0