Xceed Toolkit Plus for WPF v5.1 Documentation
Xceed.Wpf.AvalonDock Assembly / Xceed.Wpf.AvalonDock.Layout Namespace / LayoutElement Class
Members


In This Topic
    LayoutElement Class
    In This Topic
    Base class of all elements of the layout model.
    Syntax
    'Declaration
     
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    <SerializableAttribute()>
    Public MustInherit Class LayoutElement 
       Inherits System.Windows.DependencyObject
       Implements ILayoutElement 
    'Usage
     
    Dim instance As LayoutElement
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    [Serializable()]
    public abstract class LayoutElement : System.Windows.DependencyObject, ILayoutElement  
    Remarks

    The LayoutElement class provides properties, events, and handlers relating to the basic layout structure, namely, the parent and root of a derived element.

    AvalonDock adheres to an MVVM design.

    The Model is represented by the classes contained in the Xceed.Wpf.AvalonDock.Layout namespace. The classes in this namespace are the layout elements in a layout model (for example LayoutAnchorable/LayoutDocument, LayoutAnchorablePane/LayoutDocumentPaneLayoutAnchorablePaneGroup/LayoutDocumentPaneGroup, etc.) that are used directly in XAML within a DockingManager to describe how the layout is composed.

    The View is represented by the classes contained in the Xceed.Wpf.AvalonDock.Controls namespace; these classes are a set of stylizable controls that show the user controls. The names of the view controls typically end with "Control" (for example, LayoutAnchorableControl is the view control, whereas LayoutAnchorable is the model element).

    The DockingManager 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.

    There is one and only one logical tree, which has the DockingManager as its root. Even if a control is placed in a different window (i.e., autohidden windows or floating windows), it always belong to the same logical tree below the DockingManager.

    Inheritance Hierarchy

    System.Object
       System.Windows.Threading.DispatcherObject
          System.Windows.DependencyObject
             Xceed.Wpf.AvalonDock.Layout.LayoutElement
                Xceed.Wpf.AvalonDock.Layout.LayoutContent
                Xceed.Wpf.AvalonDock.Layout.LayoutFloatingWindow
                Xceed.Wpf.AvalonDock.Layout.LayoutGroupBase
                Xceed.Wpf.AvalonDock.Layout.LayoutRoot

    Public Properties
     NameDescription
    Public Property (Inherited from System.Windows.DependencyObject)
    Public Property (Inherited from System.Windows.Threading.DispatcherObject)
    Public Property (Inherited from System.Windows.DependencyObject)
    Public PropertyGets or sets the parent container of the element.  
    Public PropertyGets or sets the root of the element.  
    Top
    Public Methods
    Protected Methods
     NameDescription
    Protected MethodProvides derived classes an opportunity to handle changes to the Parent property.  
    Protected MethodProvides derived classes an opportunity to execute code before the Parent property changes.  
    Protected Method (Inherited from System.Windows.DependencyObject)
    Protected MethodProvides derived classes an opportunity to handle changes to the Root property.  
    Protected MethodRaises the PropertyChanged event for the specified property name.  
    Protected MethodRaises the PropertyChanging event for the specified property name.  
    Protected Internal Method (Inherited from System.Windows.DependencyObject)
    Top
    Public Events
     NameDescription
    Public EventRaised when a property has changed.  
    Public EventRaised when a property is about to change.  
    Top
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also