Defines an area within which you can explicitly position child elements by using coordinates that are relative to the area.
| XAML | |
| Scripting | To create an object using scripting, see the CreateFromXAML method. |
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. Object elements defined here become members of the collection held by the Children property, when accessed by scripting at runtime. |
Properties
Background,
Canvas.Left,
Canvas.Top,
Canvas.ZIndex,
Children,
Clip,
Cursor,
Height,
IsHitTestVisible,
Name,
Opacity,
OpacityMask,
RenderTransform,
RenderTransformOrigin,
Resources,
Tag,
Triggers,
Visibility,
Width
Methods
AddEventListener,
CaptureMouse,
Equals,
FindName,
GetHost,
GetParent,
GetValue,
ReleaseMouseCapture,
RemoveEventListener,
SetValue
Events
GotFocus,
KeyDown,
KeyUp,
Loaded,
LostFocus,
MouseEnter,
MouseLeave,
MouseLeftButtonDown,
MouseLeftButtonUp,
MouseMove
See Also
Referencing and Modifying Silverlight Objects
Silverlight Object Layout
InkPresenter