This blog is a knowledge base...where I clip cool tricks and urls

WPF. Draggable objects and simple shape connectors.

WPF. Draggable objects and simple shape connectors.

Each shape can possibly be connected to any number of another shapes. For hanling the position of each connector while dragging the object we need to somehow control the start and end points of the line element connected to two shapes. So it becomes obvious that each shape should contain the list of line's start and end points separately so that line positioning and length can be easily updated by the shape itself or outter code.

shapeconnectors_1
 blog it

No comments: