Table of Contents

Class Border

Namespace
Stride.UI.Controls
Assembly
Stride.UI.dll

A border element adds an uniform color border around its content.

[DataContract("Border")]
public class Border : ContentControl, IUIElementUpdate, IUIElementChildren, IIdentifiable
Inheritance
Border
Implements
Inherited Members
Extension Methods

Properties

BorderColor

Gets or sets the color of the border.

[DataMember]
[Display(null, "Appearance")]
public Color BorderColor { get; set; }

Property Value

Color

BorderThickness

Gets or sets the thickness of the border.

[DataMember]
[Display(null, "Appearance")]
public Thickness BorderThickness { get; set; }

Property Value

Thickness

Methods

ArrangeOverride(Vector3)

When overridden in a derived class, positions possible child elements and determines a size for a UIElement derived class.

protected override Vector3 ArrangeOverride(Vector3 finalSizeWithoutMargins)

Parameters

finalSizeWithoutMargins Vector3

The final area within the parent that this element should use to arrange itself and its children.

Returns

Vector3

The actual size used.

MeasureOverride(Vector3)

When overridden in a derived class, measures the size in layout required for possible child elements and determines a size for the UIElement-derived class.

protected override Vector3 MeasureOverride(Vector3 availableSizeWithoutMargins)

Parameters

availableSizeWithoutMargins Vector3

The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available.

Returns

Vector3

The size desired by the children