Gets the collection of child elements on the Canvas.
| XAML |
<Canvas>
oneOrMoreUIElements
</Canvas> |
| Scripting | value = object.Children |
XAML Values
| oneOrMoreUIElements | One or more object elements that derive from UIElement. These can be one or more of the following:
Canvas,
Ellipse,
Glyphs,
Image,
InkPresenter,
Line,
MediaElement,
Path,
Polygon,
Polyline,
Rectangle,
Shape,
TextBlock. |
Property Value
VisualCollection
The collection of child UIElement objects.
This property is read-only. You can use implicit collection syntax in XAML or methods of the VisualCollection in script to add items or otherwise adjust the existing collection, but you cannot replace it with a different object. The default value is an empty VisualCollection collection.
Applies To
Canvas, InkPresenter
See Also
XAML Syntax Overview
Silverlight Object Models and Scripting to the Silverlight Plug-in
VisualCollection
UIElement
Root