Hello,
I have a question regarding the control (ctrl) key and the XamScheduleView. When I hold the control button down and drag a schedule I'm getting some strange behaviour.
Above I have a schedule in my XamScheduleView. Now if I hold the control button and drag the schedule 1 hour to the right it automatically duplicates the schedule and then drags the new copy of the schedule to the right, as below:
I have 2 questions in regard to this behaviour:
1) Why is the control key causing a new copy of the schedule to be created when it is dragged?
2) How can I stop it from doing this?
In my application it is not allowed for there to be overlapping schedules. I am checking for overlapping schedules whenever new schedules are made/existing schedules are changed and have those parts working properly, but this duplication behaviour is causing me some problems, and since this behaviour is not needed for my application I'd like to disable it.
Thank you!
JPUser said: 1) Why is the control key causing a new copy of the schedule to be created when it is dragged?
Because that is the standard behavior for the control key. The same behavior is exhibited in Outlook - a copy of the activity is displayed during the drag when the Control key is pressed (whether the key is pressed before the drag starts or during the drag). If the Control key is down when the drag is completed (i.e. when the mouse is released) then a copy is made.
JPUser said: 2) How can I stop it from doing this?
JPUser said: In my application it is not allowed for there to be overlapping schedules. I am checking for overlapping schedules whenever new schedules are made/existing schedules are changed and have those parts working properly, but this duplication behaviour is causing me some problems, and since this behaviour is not needed for my application I'd like to disable it.
If you need any additional functionality you can submit a feature request here.
Thank you, your information was very helpful.