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
  • oknais
    Post count: 1
    #43627 |

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

    Thank you for reply

    Fawzi [Xceed]
    Post count: 722


    You can modify the code in file :
    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.