Home › Forums › WPF controls › Xceed Toolkit Plus for WPF › Pin Documents like Anchorables
Tagged: DockingManager Pin Document
-
AuthorPosts
-
#44222 |
Hi,
is there a way (i.e. property) that enables the possibility to pin/unpin the documents of the DockingManager, as already happens with AnchorableSource objects? Couldn’t find anything related in the official documentation :/Best regards
Hi,
As stated in the codeplex documentation : https://wpftoolkit.codeplex.com/wikipage?title=AvalonDock&referringTitle=Documentation
“A document (LayoutDocument class) can be hosted only in a LayoutDocumentPane. This contrasts with the behavior of LayoutAnchorable, which can be hosted both in a LayoutDocumentPane and a LayoutAnchorablePane. Also, unlike anchorables, documents can’t be anchored to a DockingManager border and can’t be autohidden: they can only be positioned into a LayoutDocumentPane or floated in a LayoutDocumentFloatingWindow.”
What you are referring to (pin/unpin) is the concept of “Auto-hidding”. This is not possible on LayoutDocuments. You need to use LayoutAnchorables if you want to have the possibility to pin/unpin the content to a DockingManager border.
Oh, I see :/ Thanks anyway for the quick reply!
I was wondering, is there a way to reproduce the style of the Visual Studio’s pin document button, namely:
with more than one document opened, the pin is visible only for the active and pinned documents, while for the unpinned documents only the document title is visible.
So, is there a way to create a custom button and to reproduce the same style as in case of the close button of the AvalonDock documents?Thanks,
Hi,
LayoutDocument can’t be pinned. Adding a “pin” button would not work on a LayoutDocument.We have opened a case to evaluate the possibility to make the LayoutDocuments “pinnables” as in Visual Studio.
Oh, that would be great,
thank you Fawzi!Great
This is to inform you that the following issue was fixed in the latest version (Toolkit for WPF v3.4):
“In AvalonDock, LayoutDocuments will now have the possibility to be ‘pinned’ in a LayoutDocumentPane.”Download Link: http://forums.xceed.com/latest-xceed-toolkit-plus-for-wpf
-
AuthorPosts
- You must be logged in to reply to this topic.