Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ShowingDockHintsEventArgs.DraggingTarget Property

Gets the target of the dragged item.

Namespace: DevExpress.Xpf.Docking.Base

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

NuGet Package: DevExpress.Wpf.Docking

#Declaration

public BaseLayoutItem DraggingTarget { get; }

#Property Value

Type Description
BaseLayoutItem

The dragged item’s target.

#Remarks

The following code sample uses the DraggingTarget property to disable FloatingGroup dock hints:

<dx:ThemedWindow
  ...
  xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
  xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking">
  <dxdo:DockLayoutManager x:Name="DockLayoutManager1" ShowingDockHints="DockLayoutManager1_ShowingDockHints">
    ...
  </dxdo:DockLayoutManager>
</dx:ThemedWindow>
private void DockLayoutManager1_ShowingDockHints(object sender, DevExpress.Xpf.Docking.Base.ShowingDockHintsEventArgs e)
  {
    if (e.DraggingTarget.IsFloating)
    e.DisableAll();
  }
See Also