How to custom controls
Closed this issue · 3 comments
mansai commented
jonchardy commented
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.
mansai commented
jonchardy commented
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.