-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dragging LayoutAnchoreable into outer docking buttons of floating document result in Exception #117
Comments
This page shows different drop target configurations - I think we need the PART_DocumentPaneDropTargets configuration for the test case shown above - I just don't know the exact code part to configure this, yet :-( |
This screenshot shows that VS supports dragging tool windows into a floating document window: The Quick fix in this zip file shows how the outer 4 buttons can be deactivated from being displayed - I would not like this solution because the background cross of the drop buttons is still visible to support 9 buttons - I think this solution is just a short term hack: |
I have added one more commit into Branch 117. This commit should leave the outer 4 buttons functional and position the FloatingLayoutAnchoreableWindow as expected (from a users point of view). The code added was based on the DocumentPaneDropTargetDrop(LayoutDocumentFloatingWindow floatingWindow) method. Its the low risk quick and hacky solution I am suggesting to get this release out the door. @mkonijnenburg I am now also seeing the problem that dragging the FloatingDocumentWindow (with LayoutAnchorable inside) back into the MainContainer makes the LayoutAnchorable dissappear :-( There, must be a filter (somewhere) where this type of content is skipped in this case(?). |
The disappearance might be due to the IsSinglePane property, It only looks at documents, not anchorables. Hopefully it can be matched somewhere that closes the window. Changing the property messes up the definition, so that might cause other undesired side effects. |
As far as I see attempt to use outer buttons adds some issues which will require some time to be properly handled. |
…tons Fix #117 with hiding outer docking buttons.
I am not sure about the IsSinglePane property but it does not seem to be the problem when I drop the FloatingDocumentWindow (containing a LayoutAnchorable) back into the DocumentPane. I discovered in Issue #132 that the outer buttons of the DocumentPane already accept this situation (see Test Case 1), while the inner button silently swallows everything not being a LayoutDocument (see Test Case 2). So, the Drop implementation for the DocumentPane appears to be inconsistent in this regard, which I am intendending to fix with the change in the branch Issue_132. @mkonijnenburg |
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:
Drag the text file into floating state
drag & drop a LayoutAnchorable (tool window) over one of the outer (red marked) drop buttons
Issue: The System throws a NotImplementedException:
Stacktrace:
The text was updated successfully, but these errors were encountered: