Border

Wraps a single child with padding and an optional stroke; also the generic padding container.
public class Border : Panel

Properties

Child

The single wrapped child.

Type: View?

public View? Child { get; set; }

Stroke

The stroke color, or null (default) for no stroke.

Type: Color?

public Color? Stroke { get; set; }

StrokeThickness

The stroke width in points.

Also insets the child so the stroke never overlaps content.

Type: double

public double StrokeThickness { get; set; }

Methods

ArrangeOverride

Content arrangement. Panels override to place their children.

protected override Size ArrangeOverride(
  Size finalSize)
ParameterSummary
Size finalSizeThe final size available for the view's content.

Returns

  • Size: The arranged content size.

MeasureOverride

Content measurement. Panels recurse; controls delegate to the native SizeThatFits.

protected override Size MeasureOverride(
  Size availableSize)
ParameterSummary
Size availableSizeThe size available for the view's content.

Returns

  • Size: The desired content size.