Home Forums WinForms controls Other WinForms controls How to set bottom height when i pin layoutanchorable in avalondock

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #18603 |

    Hi,

     How to set bottom height when I pin layoutanchorable in avalondock

    Imported from legacy forums. Posted by Sathish (had 122 views)

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    Can you explain exactly what you want to do ?

    Here’s the current behavior :
    When a LayoutAnchorable is moved around, a visual display will show the available final positions and sizes for the pinned Layoutanchorable. For example :
    -Up (LayoutAnchorable will occupy full width and full top-half of the container)
    -Down (LayoutAnchorable will occupy full width and full bottom-half of the container)
    -Right (LayoutAnchorable will occupy full right-width and full height of the container)
    -Left (LayoutAnchorable will occupy full left-width and full height of the container)
    -Center (LayoutAnchorable will occupy full width and full height of the container)

    This is the same behavior as in Microsoft Visual Studio.

    Imported from legacy forums. Posted by Fawzi [Xceed] (had 51 views)

    User (Old forums)
    Member
    Post count: 23064

    how to Programatically add the bottomside panel in avalondock

    Imported from legacy forums. Posted by Sathish (had 32 views)

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    Here’s how to add a bottom-side panel in AvalonDock programatically.

    Add a group (containing a LayoutAnchorable) to the LayoutRoot BottomSide of the DockingManager :

    var group = new LayoutAnchorGroup();
    var layoutAnchorable = new LayoutAnchorable()
    {
        Title = “MyAnchorable”,
        Content = new System.Windows.Controls.Button() { Content = “TESTING”, Margin = new Thickness(20) }
    };
    group.Children.Add( layoutAnchorable );
    _layoutRoot.BottomSide.Children.Add( group ); //_layoutRoot is defined in XAML

    layoutAnchorable.AutoHideMinHeight = 100d; //MinHeight when pinned
    layoutAnchorable.IsActive = true; //to make it visible

    Imported from legacy forums. Posted by Fawzi [Xceed] (had 61 views)

    User (Old forums)
    Member
    Post count: 23064

    how to add the bottomside panel in LayoutPanel 

    Imported from legacy forums. Posted by Sathish (had 26 views)

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    Can you give more details regarding what you mean (e.g. a snapshot, sample project). Also, did my last reply help you?

    The last question you asked was :
    “how to Programatically add the bottomside panel in avalondock”.
    In what this question is different from :
    “how to add the bottomside panel in LayoutPanel” ?

    The last answer showed you a code-sample on how to programatically add a bottom-side panel. Is that what you were looking for ?
    If not, can you tell me what are you looking for exactly?

    Imported from legacy forums. Posted by Fawzi [Xceed] (had 72 views)

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

You must be logged in to reply to this topic.