Border

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

Properties

Stroke

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

Type: Bindable<Color?>

public Bindable<Color?> Stroke { get; set; }

StrokeDashPattern

Alternating painted and unpainted stroke lengths in points, or null (default) for a solid stroke.

Type: BindableList<double>

public BindableList<double> StrokeDashPattern { get; set; }

StrokeLineCap

The shape at the ends of each painted dash. Flat by default.

This has no visible effect on a solid, closed stroke.

Type: Bindable<StrokeLineCap>

public Bindable<StrokeLineCap> StrokeLineCap { get; set; }

StrokeThickness

The stroke width in points.

Also insets the child so the stroke never overlaps content.

Type: Bindable<double>

public Bindable<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.