-
Notifications
You must be signed in to change notification settings - Fork 324
LayoutContent
- LayoutContent (Class Definition) : LayoutElement
- Class Diagram
- Base class of the LayoutAnchorable and LayoutDocument classes.
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.
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.
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. |
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) |
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. |
- WinForms Demo Client
- WPF VS 2013 Demo Client
- WPF MVVM TestApp
- TestApp
- Upgrading to V4.0 or later
- Localization
- Layout Model Control Graph
- AnchorablePaneDropTarget
- AnchorablePaneTabPanel
- ContextMenuEx
- DocumentPaneDropTarget
- DocumentPaneTabPanel
- DockingManager
- DockingManagerDropTarget
- DragService
- DropDownButton
- DropDownControlArea
- DropTarget<T>
- LayoutAnchorableControl
- LayoutAnchorableFloatingWindowControl
- LayoutAnchorControl
- LayoutAnchorGroupControl
- LayoutAnchorablePaneControl
- LayoutAnchorablePaneGroupControl
- LayoutAnchorableTabItem
- LayoutAutoHideWindowControl
- AnchorablePaneTitle
- LayoutAnchorSideControl
- LayoutDocumentControl
- LayoutDocumentFloatingWindowControl
- LayoutDocumentPaneControl
- LayoutDocumentPaneGroupControl
- LayoutDocumentTabItem
- LayoutFloatingWindowControl
- LayoutGridControl<T>
- LayoutGridResizerControl
- LayoutItem
- LayoutAnchorableItem
- LayoutDocumentItem
- LayoutPanelControl
- MenuItemEx
- NavigatorWindow
- OverlayWindow
- TabControlEx
- LayoutAnchorable
- LayoutAnchorableFloatingWindow
- LayoutAnchorGroup
- LayoutAnchorablePane
- LayoutAnchorablePaneGroup
- LayoutAnchorSide
- LayoutContent
- LayoutDocument
- LayoutDocumentFloatingWindow
- LayoutDocumentPane
- LayoutDocumentPaneGroup
- LayoutElement
- LayoutFloatingWindow
- LayoutGroup
- LayoutGroupBase
- LayoutPanel
- LayoutPositionableGroup
- LayoutRoot
- IDropTarget
- ILayoutAnchorablePane
- ILayoutContainer
- ILayoutControl
- ILayoutContentSelector
- ILayoutDocumentPane
- ILayoutElement
- ILayoutElementForFloatingWindow
- ILayoutElementWithVisibility
- ILayoutGroup
- ILayoutPane
- ILayoutPanelElement
- ILayoutPaneSerializable
- ILayoutPositionableElement
- ILayoutPositionableElementWithActualSize
- ILayoutPreviousContainer
- ILayoutOrientableGroup
- ILayoutRoot
- IOverlayWindow
- IOverlayWindowArea
- IOverlayWindowDropTarget
- IOverlayWindowHost
- DropTarget
- ILayoutItem (Interface Design)
- LayoutElement
- LayoutGridControl
- LayoutItem (Class Design)
- TabContolEx (Class Design)
- Window