Skip to content

Border class

WPF-like decorator that draws background/border and hosts a single child element.

Guide: C# Markup reference: Content

public sealed class Border : Control, ILogicalTreeHost
name description
Border() The default constructor.
Child { get; set; } Gets or sets the child element.
ClipToBounds { get; set; } Gets or sets whether the child is clipped to the border bounds, following the rounded corners when CornerRadius is set.
NonUniformBorderThickness { get; set; } Gets or sets the per-side border thickness, which when non-zero overrides the uniform BorderThickness.
NonUniformCornerRadius { get; set; } Gets or sets the per-corner radius, which when non-zero overrides the uniform CornerRadius.
static readonly ChildProperty
static readonly ClipToBoundsProperty
static readonly NonUniformBorderThicknessProperty
static readonly NonUniformCornerRadiusProperty