UIElement Object (Abstract)

UIElement is the base class for rendered Silverlight objects.

XAML
Must use derived objects.
Scripting
Must use derived objects.

Properties

Canvas.Left, Canvas.Top, Canvas.ZIndex, 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

Derived Objects

Canvas, Ellipse, Glyphs, Image, InkPresenter, Line, MediaElement, Path, Polygon, Polyline, Rectangle, Shape, TextBlock

Remarks

UIElement is abstract, and is not returned as that object type by any APIs in Silverlight 1.0. Instead, you always obtain an instance of the more specific derived practical class. You also cannot create a true <UIElement> object element in XAML. For this reason, UIElement is not listed in the "Applies To" lists for various UIElement APIs, even though it is the defining class.

See Also

Silverlight Object Model