Skip to content

LayoutContent

Dirkster99 edited this page May 8, 2019 · 11 revisions

Derives from LayoutElement

Base class of the LayoutAnchorable and LayoutDocument classes.

Property IsActive

Gets or sets whether the content is active.

Only one LayoutContent can be active in a DockingManager. When setting this property, make sure this LayoutContent is already added to its parent or the parent won't be able to set its other children IsActive property to false. For example, the DockingManager contains 2 LayoutAnchorablePanes and each of them contains 2 LayoutAnchorables. Only 1 of the 4 LayoutAnchorable will have its IsActive property true ; the last one that was clicked, or got focus.

Property IsSelected

Gets or sets whether a content element is selected.

Many LayoutContents could be selected in a DockingManager. For example, the DockingManager contains 2 LayoutAnchorablePanes and each of them contains 2 LayoutAnchorables. Each of the LayoutAnchorablePanes will have one of its chidren selected. So there will be 2 LayoutAnchorables having their IsSelected property true; the selected ones in each of the LayoutAnchorablePane.

Properties

Property Description
CanClose Gets or sets whether the content can be closed definitively (removed from the layout and not just hidden).
CanFloat Gets whether the content can be moved to a floating window.
Content Gets or sets the content of the LayoutContent instance.
ContentId Gets or sets the ID of the content, which is used to identify the content during serialization/deserialization.
FloatingHeight Gets or sets the height that will be initially used when the content is dragged and then displayed in a floating window.
FloatingLeft Gets or sets the left edge of a floating window that will contain this content.
FloatingTop Gets or sets the top edge of a floating window that will contain this content.
FloatingWidth Gets or sets the width that will be initially used when the content is dragged and then displayed in a floating window.
IconSource Gets the icon source of the content (displayed next on the tab).
IsActive Gets or sets whether the content is active.
IsEnabled Gets or sets if the LayoutDocument or LayoutAnchorable is Enabled. Default is True.
IsFloating Gets or sets whether the content is in a floating window.
IsLastFocusedDocument Gets whether the content is the last focused document.
IsMaximized Gets or sets whether a content element is maximized.
IsSelected Gets or sets whether a content element is selected.
LastActivationTimeStamp Gets or sets the date and time of the last activation of the content.
Parent Gets or sets the parent container of the element. (Inherited from AvalonDock.Layout.LayoutElement)
PreviousContainerIndex Gets or sets the index of the previous container.
Root Gets or sets the root of the element. (Inherited from AvalonDock.Layout.LayoutElement)
Title Gets or sets the title of the content.
ToolTip Gets or sets the tooltip of the content.

Events

Event Description
Closed Raised when the content is closed (i.e., removed definitively from the layout).
Closing Raised when the content is about to be closed (i.e. removed definitively from the layout).
IsActiveChanged Raised when the IsActive property has changed.
IsSelectedChanged Raised when the IsSelected property has changed.
PropertyChanged Raised when a property has changed. (Inherited from AvalonDock.Layout.LayoutElement)
PropertyChanging Raised when a property is about to change. (Inherited from AvalonDock.Layout.LayoutElement)

Methods

Method Description
Close Close the content.
CompareTo Compares the content of the current instance with the content of the specified object. If it the content cannot be compared, the titles are compared.
Dock Re-dock the content to its previous container.
DockAsDocument Dock the content as document.
Float Programmatically creates a floating window of the content.
GetSchema Returns null.
ReadXml Reads serialized layout information using the specified XmlReader.
WriteXml Writes serialized layout information using the specified XmlWriter.

Demo Projects

Controls

Layout Models

Interfaces

Class Designs

Bugs

Manual Tests

Clone this wiki locally