Home Forums WPF controls Other WPF controls AvalonDock Usage

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • weswitt
    Participant
    Post count: 2
    #44681 |

    I’m new to using AvalonDock and would like some help getting my code to make the control do what I need.

    1) Using LayoutRoot.LeftSide and LayoutAnchorable it will not display the dock with the LayoutAnchorable unhiden and set to the right width. I’m setting CanClose & CanHide to false, calling ToggleAutoHide and setting AutoHideWidth. When it is displayed it is visible and not hidden but no matter what I set the AutoHideWidth it is always displayed as a very narrow width. I’m creating the LayoutAnchorable from code behind and adding it to a LayoutAnchorGroup.

    2) With the docking containers available and the constraints on what they can contain I cannot find a way to create the window layout that I want. Below is what I want. Is this possible with Avalon Dock?

    |——–| |——————–| |——–|
    | | | | | |
    | | | | | |
    | w1 | | w2 | | w3 |
    | | | | | |
    | | | | | |
    |——–| |——————–| |——–|

    |——————————————|
    | |
    | w4 |
    | |
    | |
    |——————————————|

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    1) Size of LayoutAnchorable in Layout.LeftSide.

    Try using the AutoHideMinWidth for the LayoutAnchorable, before calling layoutAnchorable.ToggleAutoHide().

    2) Special layout

    I’m not sure to understand what is the layout you want. Can you addd a picture of it (in paint ?).

    weswitt
    Participant
    Post count: 2

    I got the layout working. Thanks for your response. This can be closed.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.