Skip to content

Dragging LayoutAnchoreable into outer docking buttons of floating document result in Exception #117

Closed
@Dirkster99

Description

@Dirkster99

The solution to this problem should be to not offer the 4 outer drop buttons when dragging an item on over a Floating Document Control (as implemented for dragging a LayoutAnchoreable over another floating LayoutAnchoreable).

Test with MLibTest:

  • review bin (sub)folder and remove the AvalonDock.Layout.config file if present

  • compile and start MLibTest application

  • Load a Text file into the demo application:
    Untitled

  • Drag the text file into floating state
    Untitled1

  • drag & drop a LayoutAnchorable (tool window) over one of the outer (red marked) drop buttons
    Untitled2

Issue: The System throws a NotImplementedException:
Untitled3

Stacktrace:

System.NotImplementedException
  HResult=0x80004001
  Message=The method or operation is not implemented.
  Source=AvalonDock
  StackTrace:
   at AvalonDock.Controls.DocumentPaneDropAsAnchorableTarget.Drop(LayoutAnchorableFloatingWindow floatingWindow) in ...\Avalondock\source\Components\AvalonDock\Controls\DocumentPaneDropAsAnchorableTarget.cs:line 82
   at AvalonDock.Controls.DropTarget`1.Drop(LayoutFloatingWindow floatingWindow) in ...\Avalondock\source\Components\AvalonDock\Controls\DropTarget.cs:line 98
   at AvalonDock.Controls.OverlayWindow.AvalonDock.Controls.IOverlayWindow.DragDrop(IDropTarget target) in ...\Avalondock\source\Components\AvalonDock\Controls\OverlayWindow.cs:line 744
   at AvalonDock.Controls.DragService.Drop(Point dropLocation, Boolean& dropHandled) in ...\Avalondock\source\Components\AvalonDock\Controls\DragService.cs:line 145
   at AvalonDock.Controls.LayoutFloatingWindowControl.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) in ...\Avalondock\source\Components\AvalonDock\Controls\LayoutFloatingWindowControl.cs:line 362
   at AvalonDock.Controls.LayoutAnchorableFloatingWindowControl.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) in ...\Avalondock\source\Components\AvalonDock\Controls\LayoutAnchorableFloatingWindowControl.cs:line 245
   at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions