Hi,
I would be grateful for your advice please. I have a scheduler object in a WPF window with a listview which has SchedulerModel objects as contents (as per the example DragAndDrop). I can drag and drop these into the Schedule control and they are added to the Appointment list which is it bound to. This is all hooked up to a backend SQL Server DB and is working well.
I am, however, struggling to get the details for the dropped appointment which has references to data in addition to the standard ScheduleAppointment information. I have tried all of the permutations I can think of but am struggling tio get the details I need to create a new appointment record in the background database. I can get the droptime from the Scheduler but not the item which was dropped.
I'm conscious I am trying to do this through the code behind for the window (this.schedule.AppointmentDropping) where the rest of the window is built using the MVVM pattern.
It would be ok if I could open a new appointment editor window with the details for the dropped appointment completed and ask them to Save it to create the database entry if that is an easier solution (the appointment editor is already linked to the database). Any advice as to how to achieve this would be gratefully received.
Many thanks.