icsharpcode / WpfDesigner

The WPF Designer from SharpDevelop
MIT License
949 stars 251 forks source link

Fixed a bug where snaplines were not applied to all items #27

Closed awraae closed 7 years ago

awraae commented 7 years ago

Snaplines were only added for controls when all parent controls (except for root) had a Content property that was a collection.

Consider the structure Window -> Canvas -> UserControl -> Canvas -> Childs.

The childs of the last canvas did not get snaplines because the canvas is child of a ContentControl which accepts only one child.

I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for the WPF Designer open source product (the "Contribution"). My Contribution is licensed under the MIT License.