Class LayoutControlContainerElement
An element which hosts and provides the layout of items that inherit from the LayoutControlItemBase. This element can be found at the root level of RadLayoutControl, as well as in LayoutControlGroupItem or LayoutControlTabbedGroup.
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, IImageElement, ITextPrimitive, ITextProvider, ILayoutControlItemsHost
Constructors
LayoutControlContainerElement()
Declaration
public LayoutControlContainerElement()
Fields
PreviewRectangleFillProperty
PreviewRectangleStrokeProperty
Declaration
public static readonly RadProperty PreviewRectangleStrokeProperty
Field Value
RadProperty
|
Properties
Items
The collection of LayoutControlItemBase items which this container hosts.
Declaration
public RadItemOwnerCollection Items { get; }
Property Value
RadItemOwnerCollection
|
Implements
PreviewRectangleFill
Gets or sets the fill color of the drag preview rectangle.
Declaration
[VsbBrowsable(true)]
public Color PreviewRectangleFill { get; set; }
Property Value
System.Drawing.Color
|
PreviewRectangleStroke
Gets or sets the border color of the drag preview rectangle.
Declaration
[VsbBrowsable(true)]
public Color PreviewRectangleStroke { get; set; }
Property Value
System.Drawing.Color
|
ResizingBehavior
Gets the LayoutControlResizingBehavior associated with this container.
Declaration
public LayoutControlResizingBehavior ResizingBehavior { get; }
Property Value
LayoutControlResizingBehavior
|
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
|