Provides stored layout state and default measurement and arrangement behavior for a LightVisualElement content part.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class VisualElementLayoutPart : IVisualLayoutPart
Inheritance: objectVisualElementLayoutPart
Derived Classes:
Implements:
Constructors
Initializes the layout part with the visual element whose content it represents.
public VisualElementLayoutPart(LightVisualElement owner)
The element that supplies the content and layout settings for this part.
Properties
Gets the bounds last assigned by Arrange(RectangleF).
public RectangleF Bounds { get; }
Implements:
Gets or sets the desired size recorded by the layout part's measurement.
public SizeF DesiredSize { get; set; }
Implements:
Gets or sets the outer spacing used when a composite layout places this part.
public Padding Margin { get; set; }
Implements:
Gets the visual element that owns this layout part.
public LightVisualElement Owner { get; }
Gets or sets padding associated with the part. The built-in LayoutManagerPart does not apply this value; it uses Margin to space its image and text parts.
public Padding Padding { get; set; }
Implements:
Methods
Stores the assigned bounds and reports their size.
public virtual SizeF Arrange(RectangleF bounds)
The rectangle allocated to the part by its layout.
Returns:The size of bounds.
Implements:
Measures the part. The base implementation reports Empty; content-bearing subclasses override this method and update DesiredSize.