Configures a DiagramNodeTool to create nodes of a particular shape and type.

Namespace:  Mindscape.WpfDiagramming
Assembly:  Mindscape.WpfDiagramming.Foundation (in Mindscape.WpfDiagramming.Foundation.dll)
Version: 2.0.0.0 (2.0.0.0)

Syntax

C#
public static void ConfigureTool(
	DiagramNodeTool tool,
	DiagramShape shape,
	Func<DiagramShape, IDiagramNodeBuilder> builder
)
Visual Basic (Declaration)
Public Shared Sub ConfigureTool ( _
	tool As DiagramNodeTool, _
	shape As DiagramShape, _
	builder As Func(Of DiagramShape, IDiagramNodeBuilder) _
)

Parameters

tool
Type: Mindscape.WpfDiagramming..::.DiagramNodeTool
The DiagramNodeTool to be configured.
shape
Type: Mindscape.WpfDiagramming..::.DiagramShape
The DiagramShape representing the desired node shape.
builder
Type: System..::.Func<(Of <(DiagramShape, IDiagramNodeBuilder>)>)
A function which produces an IDiagramNodeBuilder for the desired type of node.

Remarks

You can use this method if you want to leverage the shape tool infrastructure in your own custom diagram types.

See Also