Home Forums WPF controls Xceed Toolkit Plus for WPF AvalonDock – prevent docking as document

Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • oknais
    Participant
    Post count: 1
    #43627 |

    Hi,
    is it possible to prevent docking a LayoutAnchorable to the document pane?

    Thank you for reply

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    You can modify the code in file :
    -Xceed.Wpf.AvalonDock/DockingManager.cs
    In method :
    -IEnumerable<IDropArea> IOverlayWindowHost.GetDropAreas(LayoutFloatingWindowControl draggingWindow)

    Add the condition :
    “if( isDraggingDocuments )”
    around the 2 last “foreach”.

    This method will detect where the Floating Layouts can be dropped. Adding the condition for LayoutDocuments to drop them on “LayoutDocumentPaneControl” and “LayoutDocumentPaneGroupControl” will prevent from dropping LayoutAnchorables on LayoutDocuments.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.