@ -3,6 +3,28 @@ Derives from Xceed.Wpf.AvalonDock.Layout.LayoutElement
Base class of the [[LayoutAnchorable]] and [[LayoutDocument]] classes.
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.
In the following image, LayoutAchorables "333" was just clicked and will have its IsActive property true.
[[LayoutContent_IsActive.png]]
### 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.
In the following image, LayoutAcnhorables "111" and "444" will have their IsSelected property true.
[[LayoutContent_IsSelected.png]]
### Properties
### Properties
| Property | Description |
| Property | Description |
| --- | --- |
| --- | --- |
@ -15,7 +37,7 @@ Base class of the [[LayoutAnchorable]] and [[LayoutDocument]] classes.
| FloatingTop | Gets or sets the top 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. |
| 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). |
| IconSource | Gets the icon source of the content (displayed next on the tab). |
| IsActive | Gets whether the content is active. |
| IsActive | Gets or sets whether the content is active. |
| IsEnabled | Gets or sets if the LayoutDocument or LayoutAnchorable is Enabled. Default is True. |
| 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. |
| IsFloating | Gets or sets whether the content is in a floating window. |
| IsLastFocusedDocument | Gets whether the content is the last focused document. |
| IsLastFocusedDocument | Gets whether the content is the last focused document. |