Table of Contents

Class Border

Namespace
Xui.Core.UI
Assembly
Xui.Core.dll

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

Color

BorderColor

Gets or sets the border stroke color.

public Color BorderColor { get; set; }

Property Value

Color

BorderThickness

Gets or sets the per-side border thickness.

public Frame BorderThickness { get; set; }

Property Value

Frame

Content

Gets or sets the content view displayed inside the border.

public View? Content { get; set; }

Property Value

View

CornerRadius

Gets or sets the corner radius.

public CornerRadius CornerRadius { get; set; }

Property Value

CornerRadius

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

int

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

index int

Property Value

View

Padding

Gets or sets the padding between the border edge and the content.

public Frame Padding { get; set; }

Property Value

Frame