Updated LayoutContent (markdown)

master
DianeXceed 9 years ago
parent
commit
3c0f6a3776
  1. 91
      LayoutContent.md

91
LayoutContent.md

@ -1,51 +1,54 @@
# LayoutContent # LayoutContent
Derives from Xceed.Wpf.AvalonDock.Layout.LayoutElement Derives from Xceed.Wpf.AvalonDock.Layout.LayoutElement
Base class of the LayoutAnchorable and LayoutDocument classes. Base class of the [[LayoutAnchorable]] and [[LayoutDocument]] classes.
## Properties ### Properties
|| Property || Description | 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. | CanClose | Gets or sets whether the content can be closed definitively (removed from the layout and not just hidden). |
| Content | Gets or sets the content of the LayoutContent instance. | CanFloat | Gets whether the content can be moved to a floating window. |
| ContentId | Gets or sets the ID of the content, which is used to identify the content during serialization/deserialization. | Content | Gets or sets the content of the LayoutContent instance. |
| FloatingHeight | Gets or sets the height that will be initially used when the content is dragged and then displayed in a floating window. | ContentId | Gets or sets the ID of the content, which is used to identify the content during serialization/deserialization. |
| FloatingLeft | Gets or sets the left edge of a floating window that will contain this content. | FloatingHeight | Gets or sets the height that will be initially used when the content is dragged and then displayed in a floating window. |
| FloatingTop | Gets or sets the top edge of a floating window that will contain this content. | FloatingLeft | Gets or sets the left 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. | FloatingTop | Gets or sets the top edge of a floating window that will contain this content. |
| IconSource | Gets the icon source of the content (displayed next on the tab). | FloatingWidth | Gets or sets the width that will be initially used when the content is dragged and then displayed in a floating window. |
| IsActive | Gets whether the content is active. | IconSource | Gets the icon source of the content (displayed next on the tab). |
| IsEnabled | Gets or sets if the LayoutDocument or LayoutAnchorable is Enabled. Default is True. | IsActive | Gets whether the content is active. |
| IsFloating | Gets or sets whether the content is in a floating window. | IsEnabled | Gets or sets if the LayoutDocument or LayoutAnchorable is Enabled. Default is True. |
| IsLastFocusedDocument | Gets whether the content is the last focused document. | IsFloating | Gets or sets whether the content is in a floating window. |
| IsMaximized | Gets or sets whether a content element is maximized. | IsLastFocusedDocument | Gets whether the content is the last focused document. |
| IsSelected | Gets or sets whether a content element is selected. | IsMaximized | Gets or sets whether a content element is maximized. |
| LastActivationTimeStamp | Gets or sets the date and time of the last activation of the content. | IsSelected | Gets or sets whether a content element is selected. |
| Parent | Gets or sets the parent container of the element. (Inherited from Xceed.Wpf.AvalonDock.Layout.LayoutElement) | LastActivationTimeStamp | Gets or sets the date and time of the last activation of the content. |
| PreviousContainerIndex | Gets or sets the index of the previous container. | Parent | Gets or sets the parent container of the element. (Inherited from Xceed.Wpf.AvalonDock.Layout.LayoutElement) |
| Root | Gets or sets the root of the element. (Inherited from Xceed.Wpf.AvalonDock.Layout.LayoutElement) | PreviousContainerIndex | Gets or sets the index of the previous container. |
| Title | Gets or sets the title of the content. | Root | Gets or sets the root of the element. (Inherited from Xceed.Wpf.AvalonDock.Layout.LayoutElement) |
| ToolTip | Gets or sets the tooltip of the content. | Title | Gets or sets the title of the content. |
| ToolTip | Gets or sets the tooltip of the content. |
## Events ### Events
|| Event || Description | 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). | Closed | Raised when the content is closed (i.e., removed definitively from the layout). |
| IsActiveChanged | Raised when the IsActive property has changed. | Closing | Raised when the content is about to be closed (i.e. removed definitively from the layout). |
| IsSelectedChanged | Raised when the IsSelected property has changed. | IsActiveChanged | Raised when the IsActive property has changed. |
| PropertyChanged | Raised when a property has changed. (Inherited from Xceed.Wpf.AvalonDock.Layout.LayoutElement) | IsSelectedChanged | Raised when the IsSelected property has changed. |
| PropertyChanging | Raised when a property is about to change. (Inherited from Xceed.Wpf.AvalonDock.Layout.LayoutElement) | PropertyChanged | Raised when a property has changed. (Inherited from Xceed.Wpf.AvalonDock.Layout.LayoutElement) |
| PropertyChanging | Raised when a property is about to change. (Inherited from Xceed.Wpf.AvalonDock.Layout.LayoutElement) |
## Methods ### Methods
|| Method || Description | 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. | Close | Close the content. |
| Dock | Re-dock the content to its previous container | 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. |
| DockAsDocument | Dock the content as document | Dock | Re-dock the content to its previous container. |
| Float | Programmatically creates a floating window of the content. | DockAsDocument | Dock the content as document. |
| GetSchema | Returns null. | Float | Programmatically creates a floating window of the content. |
| ReadXml | Reads serialized layout information using the specified XmlReader. | GetSchema | Returns null. |
| WriteXml | Writes serialized layout information using the specified XmlWriter. | ReadXml | Reads serialized layout information using the specified XmlReader. |
| WriteXml | Writes serialized layout information using the specified XmlWriter. |
**Support this project, check out the [Plus Edition](http://wpftoolkit.com).** ---
--- **Support this project, check out the [Plus Edition](http://wpftoolkit.com).**
Loading…
Cancel
Save