This sample is like the Mapping Fields of Records sample, but it has a collapsible tree of nodes on each side, rather than a simple list of items. The implementation of the trees comes from the Tree View sample.

Draw new links by dragging from any field (i.e. any tree node). Reconnect a selected link by dragging its diamond-shaped handle.

The "Adornment" Layer has been moved to be before/behind the "Background" Layer, so that the custom node selection Adornment is behind the node and fills the width of the group.

The model data, automatically updated after each change or undo or redo: