Class Border
A view that draws a background, border, and padding around a single child content view.
All rendering is owned by BorderLayer<TChild> composed with
ContentLayer. The child view lives in Layer.Child.Child and is
managed via the standard SetProtectedChild<T>(ref T?, T?) lifecycle.
public class Border : LayerView<View, BorderLayer<View, ContentLayer>>, ILayerHost, IServiceProvider
- Inheritance
-
Border
- Implements
- Inherited Members
- Extension Methods
Properties
BackgroundColor
Gets or sets the background fill color.
public Color BackgroundColor { get; set; }
Property Value
BorderColor
Gets or sets the border stroke color.
public Color BorderColor { get; set; }
Property Value
BorderThickness
Gets or sets the per-side border thickness.
public Frame BorderThickness { get; set; }
Property Value
Content
Gets or sets the content view displayed inside the border.
public View? Content { get; set; }
Property Value
CornerRadius
Gets or sets the corner radius.
public CornerRadius CornerRadius { get; set; }
Property Value
Count
Returns the number of child views. Used by layout containers and traversal logic. Leaf views should return 0.
public override int Count { get; }
Property Value
this[int]
Indexer to access child views by index. Layout containers should implement this to expose their children.
public override View this[int index] { get; }
Parameters
indexint
Property Value
Padding
Gets or sets the padding between the border edge and the content.
public Frame Padding { get; set; }