Class LayoutControlContainerElement
Represents a container element that hosts and manages the layout of items derived from LayoutControlItemBase. This element serves as a layout host at the root level of RadLayoutControl and within LayoutControlGroupItem or LayoutControlTabbedGroup containers.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class LayoutControlContainerElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, ILayoutControlItemsHost
Constructors
LayoutControlContainerElement()
Declaration
public LayoutControlContainerElement()
Fields
PreviewRectangleFillProperty
Identifies the PreviewRectangleFill dependency property that specifies the fill color of the drag preview rectangle.
Declaration
public static readonly RadProperty PreviewRectangleFillProperty
Field Value
|
RadProperty
|
PreviewRectangleStrokeProperty
Identifies the PreviewRectangleStroke dependency property that specifies the border color of the drag preview rectangle.
Declaration
public static readonly RadProperty PreviewRectangleStrokeProperty
Field Value
|
RadProperty
|
Properties
Items
Gets the collection of LayoutControlItemBase items hosted by this container element.
Declaration
public RadItemOwnerCollection Items { get; }
Property Value
|
RadItemOwnerCollection
A RadItemOwnerCollection containing the layout control items. |
Implements
PreviewRectangleFill
Gets or sets the fill color used for the drag preview rectangle during drag and drop operations.
Declaration
[VsbBrowsable(true)]
public Color PreviewRectangleFill { get; set; }
Property Value
|
System.Drawing.Color
A System.Drawing.Color representing the fill color. The default value is a semi-transparent blue color. |
PreviewRectangleStroke
Gets or sets the border color used for the drag preview rectangle during drag and drop operations.
Declaration
[VsbBrowsable(true)]
public Color PreviewRectangleStroke { get; set; }
Property Value
|
System.Drawing.Color
A System.Drawing.Color representing the border color. The default value is a blue color. |
ResizingBehavior
Gets the resizing behavior handler associated with this container element.
Declaration
public LayoutControlResizingBehavior ResizingBehavior { get; }
Property Value
|
LayoutControlResizingBehavior
A LayoutControlResizingBehavior that manages resizing operations for the container. |
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
|
System.Drawing.SizeF
finalSize
|
Returns
|
System.Drawing.SizeF
|
Overrides
CreateChildElements()
Declaration
protected override void CreateChildElements()
Overrides
EnsureItemControlAdded(LayoutControlItem)
Declaration
protected virtual void EnsureItemControlAdded(LayoutControlItem controlItem)
Parameters
|
LayoutControlItem
controlItem
|
GetDropHintPreviewRectangle(DraggableLayoutControlItem, Point)
Gets the the drag hint preview rectangle if an item were to be dragged at a given point.
Declaration
public Rectangle GetDropHintPreviewRectangle(DraggableLayoutControlItem item, Point controlPoint)
Parameters
|
DraggableLayoutControlItem
item
The dragged item. |
|
System.Drawing.Point
controlPoint
The point in control coordinates. |
Returns
|
System.Drawing.Rectangle
The preview rectangle. |
GetDropHintPreviewRectangle(DraggableLayoutControlItem, Point, Type)
Gets the the drag hint preview rectangle if an item were to be dragged at a given point.
Declaration
public Rectangle GetDropHintPreviewRectangle(DraggableLayoutControlItem item, Point controlPoint, Type dragContext)
Parameters
|
DraggableLayoutControlItem
item
The dragged item. |
|
System.Drawing.Point
controlPoint
The point in control coordinates. |
|
System.Type
dragContext
The type of the dragged item. |
Returns
|
System.Drawing.Rectangle
The preview rectangle. |
HandleDrop(DraggableLayoutControlItem, LayoutControlItemBase, Point)
Handles dropping an element over another at the specified position.
Declaration
public void HandleDrop(DraggableLayoutControlItem dropTargetElement, LayoutControlItemBase draggedElement, Point mousePosition)
Parameters
|
DraggableLayoutControlItem
dropTargetElement
The drop target element. |
|
LayoutControlItemBase
draggedElement
The dragged element. |
|
System.Drawing.Point
mousePosition
The specified position. |
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
|
System.Drawing.SizeF
availableSize
|
Returns
|
System.Drawing.SizeF
|
Overrides
OnLoaded()
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
|
RadPropertyChangedEventArgs
e
|
Overrides
PerformControlLayout()
Updates the layout of the inner controls.
Declaration
public void PerformControlLayout()
PerformControlLayout(Boolean)
Updates the layout of the inner controls.
Declaration
public void PerformControlLayout(bool recursive)
Parameters
|
System.Boolean
recursive
If [true], goes into nested LayoutControlContainerElements recursively. |
RebuildLayoutTree()
Rebuilds the layout of the container.
Declaration
public void RebuildLayoutTree()
RebuildLayoutTree(Boolean)
Rebuilds the layout of the container.
Declaration
public void RebuildLayoutTree(bool performLayout)
Parameters
|
System.Boolean
performLayout
If [true], forces a layout update. |
SubtractControlScrollbarsSize(SizeF)
Declaration
protected virtual SizeF SubtractControlScrollbarsSize(SizeF availableSize)
Parameters
|
System.Drawing.SizeF
availableSize
|
Returns
|
System.Drawing.SizeF
|