Home Forums WPF controls Xceed Toolkit Plus for WPF Pin Documents like Anchorables

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • GuglielmoCancelli
    Participant
    Post count: 19
    #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

    Fawzi [Xceed]
    Member
    Post count: 722

    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.

    GuglielmoCancelli
    Participant
    Post count: 19

    Oh, I see :/ Thanks anyway for the quick reply!

    GuglielmoCancelli
    Participant
    Post count: 19

    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,

    Fawzi [Xceed]
    Member
    Post count: 722

    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.

    GuglielmoCancelli
    Participant
    Post count: 19

    Oh, that would be great,
    thank you Fawzi!

    soumyaahuja
    Participant
    Post count: 1

    Great

    Diane [Xceed]
    Moderator
    Post count: 1353

    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

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