This project has moved. For the latest updates, please go here.

AvalonDock: How to assign a parent to a Hidden item that doesn't have a parent by default

Jun 27 at 11:52 PM
I have a scenario where in my default layout for my dock, I have a few LayoutAnchorable items in LayoutRoot.Hidden. These don't have any parent because I don't want them to be visible until the user explicitly enables them.

The problem I'm having is I can't seem to figure out how to move it from being Hidden to being rooted to a new floating window, or (for example) the BottomSide group.

Are there any samples on how to do something like this?
Jun 28 at 6:16 PM
This didn't seem to work yesterday but I was able to get this to work today by doing something like this:
LayoutAnchorGroup lpg = this.DockingManager.Layout.BottomSide.Children.First();
lpg.Children.Add(layoutAnchorable); // layoutAnchorable is discovered by matching a content ID with something in Layout.Hidden
Marked as answer by theficus on 6/28/2017 at 11:16 AM