In DoLayout(…) I calculate nodeData position for all elements. First Group get position 0,0, First Node inside the Group get parent position and so on.
My Group template is a simple border is defined with folowing values
There is only 1 element inside the border (Main Border) and it’s the GroupPanel (I’ve removed Group layout as the whole layouting is calculated in the Main Layout)
Inside the Group panel I’ve added a Boder bind to the nodeData Size.
I’ve expected that both Rectangle should have been at the exact same position. But I’ve a delta between
Main Border and Group Panel Border.
It doesn’t make sense to me that you are binding the Width and Height of both the whole group’s Border as well as the Border in the GroupPanel. How can they both be the same size when you have other elements in the StackPanel?
Furthermore, why are you binding the Width and Height of the Border in the GroupPanel? Normally a Border should go around something, but there’s nothing there. It’s most common to have a Border around the GroupPanel, in which case you wouldn’t need or want to bind its Width and Height.