A modified fork of http://www.codeproject.com/Articles/24681/WPF-Diagram-Designer-Part-4