Skip to main content

DockLayoutManager.DockItemDragging Event

Fires repeatedly while a dock panel is being dragged.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v14.2.dll

#Declaration

public event DockItemDraggingEventHandler DockItemDragging

#Event Data

The DockItemDragging event's handler receives an argument of the DockItemDraggingEventArgs type. The following properties provide information specific to this event:

Property Description
Cancel Gets or sets whether the current operation must be canceled. Inherited from ItemCancelEventArgs.
Handled Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. Inherited from RoutedEventArgs.
Item Gets the currently processed item. Inherited from ItemEventArgs.
OriginalSource Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class. Inherited from RoutedEventArgs.
RoutedEvent Gets or sets the RoutedEvent associated with this RoutedEventArgs instance. Inherited from RoutedEventArgs.
ScreenPoint Gets or sets the current point at which the item is being dragged.
Source Gets or sets a reference to the object that raised the event. Inherited from RoutedEventArgs.

#Remarks

Handle the DockItemDragging event to perform actions while a dock panel is being dragged.

The event's Item parameter always refers to a float group.

When a panel is docked and an end-user starts dragging it, a float group is immediately created containing the dock panel. So, the dock panel is immediately made floating. The DockItemDragging event will fire with the Item parameter referring to the created float group. To access dock panels nested within the float group, use the float group's LayoutGroup.Items collection.

To prevent dock operations from being started, handle the DockLayoutManager.DockItemStartDocking event.

See Also