The event handler receives an argument of type AppointmentsDraggingEventArgs containing data related to this event. The following AppointmentsDraggingEventArgs properties provide information specific to this event.
Property | Description |
---|---|
AllowCopy | Returns or sets whether copies of the appointment(s) can be made during the drag operation. |
AllowOwnerChange | Returns or sets whether the appointment(s) can be dragged to a different Owner than the one for which the drag operation was initiated. |
Appointments | Returns a read-only collection of the appointments that are being dragged. |
Cancel (Inherited from System.ComponentModel.CancelEventArgs) | |
CopyCursor | Returns or sets the cursor which is displayed during the drag operation when the dragged items are being copied. |
HasCopies | Returns a boolean indicating whether the drag operation currently contains copied Appointment. |
InitialDateTime (Inherited from Infragistics.Win.UltraWinSchedule.CancelableAppointmentDragEventArgs) | Returns the DateTime over which the cursor was positioned when the operation was initiated. |
InitialOwner | Returns the Owner of the appointment(s) at the time the drag operation was initiated. |
MoveCursor | Returns or sets the cursor which is displayed during the drag operation when the items are being moved without being copied. |
NewDateTime (Inherited from Infragistics.Win.UltraWinSchedule.CancelableAppointmentDragEventArgs) | Returns the DateTime closest to the current cursor position. |
NewOwner | Returns the new Owner of the appointment(s), based on the current cursor position. |
Phase | Returns the phase of the drag operation that this event firing represents, i.e., whether it is beginning, in progress, or ending. |
The AppointmentsDragging event notifies a listener during all phases of an appointment drag operation. The Phase property identifies whether the drag operation has just been initiated, is continuing because the end user is moving the mouse while the logical left button is pressed, or is about to be committed because the end user released the mouse. The event can be canceled during any phase, in which case the dragged appointment(s) are returned to their pre-drag state. A listener can use this event for the following purposes:
If this event is not canceled, the AppointmentsDragDrop event is fired at the end of the drag operation.
Appointments can be dragged to another control by canceling the AppointmentsDragging event, and calling the DoDragDrop method on the schedule control from which the appointments are being dragged. Note that the drop target control must in this case have its AllowDrop property set to true, and the developer must also handle its DragDrop event in order to process the data.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2