Skip to content

LayoutRoot

Dirkster99 edited this page Dec 12, 2019 · 25 revisions

LayoutRoot (Definition) : LayoutElement, ILayoutContainer, ILayoutRoot, IXmlSerializable

Represents the root of the layout model (see Layout property in the DockingManager)

Events

Event Description
ElementAdded Raised when an element is added to the layout.
ElementRemoved Raised when an element is removed from the layout.
PropertyChanged Raised when a property has changed. (Inherited from LayoutElement)
PropertyChanging Raised when a property is about to change. (Inherited from LayoutElement)
Updated Raised when the layout is updated. This event is raised via FireLayoutUpdated() method when a parent of a LayoutElement has changed.

Layout Tree Root Properties

Property Description
LayoutPanel RootPanel Gets or sets the root layout panel that contains the LayoutDocumentPane.
LayoutAnchorSide LeftSide Gets or sets the left side of the layout root.
LayoutAnchorSide RightSide Gets or sets the right side of the layout root.
LayoutAnchorSide BottomSide Gets or sets the bottom side of the layout root.
LayoutAnchorSide TopSide Gets or sets the top side of the layout root.

The above properties implement the root of the layout model tree in AvalonDock. The Layout model tree represents the layout models that drive the Visual Root of the DockingManager.

Other Properties

Property Description
ActiveContent Gets the active LayoutContent-derived element.
Children Gets the child elements of the layout root.
ChildrenCount Gets the number of child elements.
FloatingWindows Gets the floating windows that are in the layout.
Hidden Gets the hidden anchorables in the layout.
LastFocusedDocument Gets the last focused content.
Manager Gets the DockingManager that arranges the panes it contains and handles autohide anchorables and floating windows.
Parent Gets or sets the parent container of the element. (Inherited from LayoutElement)
ILayoutRoot Root Gets or sets the root of the element. (Inherited from LayoutElement)

Methods

Method Description
CollectGarbage Removes any empty containers not directly referenced by other layout items.
RemoveChild Removes the specified child element.
ReplaceChild Replaces on child element with another.

Demo Projects

Controls

Layout Models

Interfaces

Class Designs

Bugs

Manual Tests

Clone this wiki locally