Interface IShowHidable

GoDiagram®
v10.0.12
by Northwoods Software®

IShowHidable is used to show and hide elements, such as a context menus, tooltips, or text editors.

Namespace: Northwoods.Go
Assembly: Northwoods.GoDiagram.Avalonia.dll
Syntax
public interface IShowHidable

Methods

Hide(Diagram, Tool)

Gets or sets the function to call when an IShowHidable is to be hidden.

Declaration
void Hide(Diagram d, Tool t)
Parameters
Type Name Description
Diagram d
Tool t
Remarks

The function should "hide" the IShowHidable, either by removing any traces of it or otherwise returning the page state to one where the IShowHidable content is no longer considered active.

Setting this is not strictly necessary, if no action is to be taken when hiding the IShowHidable.

If this is called by:

Show(GraphObject, Diagram, Tool)

Gets or sets the function to call when an IShowHidable is to be shown, such as when used as the ContextMenu or ToolTip or TextEditor.

Declaration
void Show(GraphObject g, Diagram d, Tool t)
Parameters
Type Name Description
GraphObject g
Diagram d
Tool t
Remarks

If this is called by:

If you need access to any bound data for the first argument, if it is non-null, you can get it via: obj.Part.Data and then you can look at any of the properties you have put on that data.

When used as a context menu, typically shown elements, such as buttons, should call diagram.CurrentTool.StopTool(); when their action is completed.