Bilal Hajjar
Bilal Hajjar

Reputation: 1

draw dynamic tree

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

Answers (2)

Plamen Peshev
Plamen Peshev

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

enter image description here

Upvotes: 1

Axel Kemper
Axel Kemper

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:

enter image description here

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

Related Questions