Table of Contents

Class Border

Namespace
nanoFramework.Presentation.Controls
Assembly
nanoFramework.Graphics.dll

Represents a WPF-like Border control that provides a border and background for its content.

public class Border : ContentControl
Inheritance
Border
Inherited Members
Extension Methods

Constructors

Border()

Initializes a new instance of the Border class.

public Border()

Properties

BorderBrush

Gets or sets the Brush used to draw the border of the Border control.

public Brush BorderBrush { get; set; }

Property Value

Brush

Methods

ArrangeOverride(int, int)

Arranges the content of the Border control.

protected override void ArrangeOverride(int arrangeWidth, int arrangeHeight)

Parameters

arrangeWidth int

The width of the layout slot for the control.

arrangeHeight int

The height of the layout slot for the control.

GetBorderThickness(out int, out int, out int, out int)

Gets the thickness of the border of the Border control.

public void GetBorderThickness(out int left, out int top, out int right, out int bottom)

Parameters

left int

Receives the thickness of the left border.

top int

Receives the thickness of the top border.

right int

Receives the thickness of the right border.

bottom int

Receives the thickness of the bottom border.

MeasureOverride(int, int, out int, out int)

protected override void MeasureOverride(int availableWidth, int availableHeight, out int desiredWidth, out int desiredHeight)

Parameters

availableWidth int
availableHeight int
desiredWidth int
desiredHeight int

OnRender(DrawingContext)

Draws the content of the Border control.

public override void OnRender(DrawingContext dc)

Parameters

dc DrawingContext

The DrawingContext.

SetBorderThickness(int)

Sets the thickness of the border of the Border control.

public void SetBorderThickness(int length)

Parameters

length int

The thickness of all four borders.

SetBorderThickness(int, int, int, int)

Sets the thickness of the border of the Border control.

public void SetBorderThickness(int left, int top, int right, int bottom)

Parameters

left int

The thickness of the left border.

top int

The thickness of the top border.

right int

The thickness of the right border.

bottom int

The thickness of the bottom border.