NtTimeChartControl.endObjectDragging Event
This event is being raised when the user finishes dragging one or more objects. You can catch and cancel this event in order to cancel the dragging operation. In this case the obect(s) flip back
to their original position.
In your event handler you can use the NtObjectDraggingEventArgs's member
This event is very useful to avoid unwanted drag operations: For example you want to allow dragging in general but still want to avoid dragging objects too far.
This might be the case if you do not want users to drag objects from one
day to another. Then you catch this event. In the event args you will find the NtDisplayObject that also contains a reference to the
NtDataObject from which you can get the original time of the object. Aditionally the event args also contain a member
Overload List:
| Event Name | Event Arguments | Description |
|---|---|---|
|
|
|
Event raised when users start dragging an object. |
Event Arguments:
The member
The drag distance is stored in the event's member
Remarks:
While dragging, the time stamp of the NtDataObject stays unchanged up until the dragging completes and the
See also:
beginObjectDragging
continueObjectDragging
NtObjectDraggingEventArgs
