Skip to main content

ShowingDockHintsEventArgs.DraggingSource Property

Gets the dragged item’s owner.

Namespace: DevExpress.Xpf.Docking.Base

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

NuGet Package: DevExpress.Wpf.Docking

Declaration

public BaseLayoutItem DraggingSource { get; }

Property Value

Type Description
BaseLayoutItem

The dragged item’s owner.

Remarks

The following code sample uses the DraggingSource property to disable DocumentPanels’ 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:DocumentGroup>
      <dxdo:DocumentPanel Caption="Document1" AllowFloat="False"/>
      <dxdo:DocumentPanel Caption="Document2" AllowFloat="False"/>
    </dxdo:DocumentGroup>
    ...
  </dxdo:DockLayoutManager>
</dx:ThemedWindow>
private void DockLayoutManager1_ShowingDockHints(object sender, DevExpress.Xpf.Docking.Base.ShowingDockHintsEventArgs e)
  {
    if (e.DraggingSource.IsTabPage)
    e.DisableAll();
  }
See Also