Child

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the child element to draw the border around.

<Border ...>
  singleChild
</Border>
value = object.Child
object.Child = value

XAML Values

Value

Description

singleChild

A single object that derives from UIElement. This can be one of the following: Border, Canvas, Ellipse, Glyphs, Grid, Image, InkPresenter, Line, MediaElement, PasswordBox, Path, Polygon, Polyline, Popup, Rectangle, Shape, StackPanel, TextBlock, TextBox.

Property Value

Type: UIElement

The object to apply the border to.

This property is read/write. The default is null.

Managed Equivalent

Child

Applies To

Border

Version Information

Silverlight 2