NorthwoodsSoftware/GoDiagram

How to custom controls

Closed this issue · 3 comments

custom GraphObject Textbox Checkbox TabControl Groupbox add to diagram
image

This seems like something that should be implemented outside of GoDiagram. You can have a containing panel that holds both a DiagramControl and whatever custom controls you want, and position your controls relative to the diagram if needed.

GoDiagram doesn't support custom controls as nodes since it uses a SkiaSharp canvas to render and is a "black box" for performance reasons.

Certain controls like tooltips, context menus, and text editors can be shown/hidden via the IShowHidable interface.

Avalonia.Controls also uses SkiaSharp

image

Yes, Avalonia and WinForms are both using SkiaSharp for rendering. In both cases, we are using a canvas, which cannot draw arbitrary controls to its surface.