Topic: WPF: to Draw a block diagram - the approach
There is a model for a block diagram which describes a dial-up from N units, and also the data that some units need to be connected a quantity .
Thus the beginning and the connection end is not an undoubted point (type - the middle of right side of the unit), and a point on the brink of the unit which depends on how the unit , and depending on configuration of the text in the unit, these points can float. That is the place cannot be calculated in advance, and it will be necessary to look upon the ambassador of rendering of the unit.
The model, naturally, knows nothing about coordinates and the sizes of units, simply contains enough information for certain intellectual "" on the side of representation which places units and draws .
In a head there is a whole lots of approaches to writing of it , but any is not pleasant to me, or there are too many questions when you start to think over implementation carefully.
While as a working variant I think for the panel for ItemsControl, it gets access by the sizes ContentPresenter units, itself places them as it is required. But she does not draw, means there should be any second stage.
In general, there are ideas?