2/21/2023 0 Comments Dock clock plus v3.5![]() ![]() Unlike a LayoutAnchorablePane, a LayoutDocumentPane cannot be set to autohide or dragged over the DockingManager as floating window (although individual LayoutDocument elements can be floated). A LayoutAnchorablePane can also be anchored to a border of the parent DockingManager (see LayoutAnchorSide for more details). A LayoutAnchorablePane can be set to autohide and can be dragged over the DockingManager as floating window. LayoutContent-derived elements (LayoutAnchorable and LayoutDocument) are typically arranged as in a tab control. Floating windows can also be created programmatically using the Float method). Also, unlike anchorables, documents can't be anchored to a DockingManager border and can't be autohidden: they can only be positioned into a LayoutDocumentPane or floated in a LayoutDocumentFloatingWindow.Ī LayoutAnchorableFloatingWindow or a LayoutDocumentFloatingWindow is created automatically when the end-user drags an anchorable over the DockingManager. This contrasts with the behavior of LayoutAnchorable, which can be hosted both in a LayoutDocumentPane and a LayoutAnchorablePane. Unlike documents, anchorables can autohide, where their content collapses to one side of the docking manager and is represented only by a tab (see LayoutAnchorSide and LayoutAnchorGroup).Ī document (LayoutDocument class) can be hosted only in a LayoutDocumentPane. Anchorables can also be left in a floating state (LayoutAnchorableFloatingWindow). ![]() Anchorables can also be dragged to a border of the parent DockingManager, which causes them to appear above, below, to the left of, or to the right of all other anchorables or documents (except for autohide windows see the LayoutAnchorSide / LayoutAnchorGroup section below for details). Anchorables are always contained in a pane, which can be either a LayoutAnchorablePane or a LayoutDocumentPane, whereas documents (class LayoutDocument) can only be contained in a LayoutDocumentPane. The fundamental content-containing classes in AvalonDock are LayoutAnchorable and LayoutDocument both of these classes derive from the LayoutContent class, which determines whether an element can close, float (be dragged and transformed into a floating window), etc.Īn anchorable is typically the container of application controls and can be dragged away from its container pane (LayoutAnchorablePane) and re-positioned into another pane. The layout element classes are used within the layout model held in the Layout property of the DockingManager. The DockingManager class also handles saving and restoring layouts.Īmong other properties, the class provides several "Template" properties (e.g., AnchorableTitleTemplate/DocumentTitleTemplate, AnchorableHeaderTemplate/DocumentHeaderTemplate, etc.) that allow designers and developers to specify the template for the elements contained in the layout. The class arranges the panes it contains and also handles auto-hide windows and floating windows (panes in turn contain, directly or indirectly, the two types of "content" elements, namely, LayoutAnchorable and LayoutDocument elements). Its Layout property contains the layout composition that is represented by the classes in the namespace. The DockingManager class is the core control of AvalonDock. Even if a control is placed in a different window (i.e., an autohidden window or a floating window), it always belong to the same logical tree below the DockingManager. There is only one logical tree, which has the DockingManager as its root. The DockingManager, which is contained in the namespace, uses various classes (such as the LayoutItem and its derived classes) to perform the role of the ViewModel, preparing the model to be consumed by the view. The names of the view controls typically end with "Control" and correspond to a layout model class (for example, LayoutAnchorableControl is the view control that corresponds to LayoutAnchorable, which is the model element). The view is represented by the classes contained in the namespace these classes are a set of stylizable controls that show the user controls. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |