Hi, I've recently started using the MVVM pattern in working with WPF. I have a collection of ViewModel classes which are displayed on the screen as UIElements (namely rectangles) and I want to be able to draw lines between these elements to connect them. The thing is that the line also represents another ViewModel object. now i've been able to get static sized lines to appear on the screen, but I want to be able to click a button or menuitem or something and draw a line from one rectangle to another and have them "connect" while at the same time create a viewmodel class that represents that connection. The connection should know what it's connecting also (e.g. start/end viewmodels).
Can anyone help me?