Condividi tramite


UIElement

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

Provides a base class for rendered Silverlight objects.

Syntax Notes

See Derived Objects for syntax information.

Derived Objects

Border (Silverlight 2), Canvas, Ellipse, Glyphs, Grid (Silverlight 2), Image, InkPresenter, Line, MediaElement, MultiScaleImage (Silverlight 2), PasswordBox (Silverlight 2), Path, Polygon, Polyline, Popup (Silverlight 2), Rectangle, Shape, StackPanel (Silverlight 2), TextBlock, TextBox (Silverlight 2)

Properties

Canvas.Left, Canvas.Top, Canvas.ZIndex, Clip, Cursor, Effect (Silverlight 3), Grid.Column (Silverlight 2), Grid.ColumnSpan (Silverlight 2), Grid.Row (Silverlight 2), Grid.RowSpan (Silverlight 2), Height (UIElement), HorizontalAlignment (Silverlight 2), IsHitTestVisible, Language (Silverlight 2), Margin (Silverlight 2), MaxHeight (Silverlight 2), MaxWidth (Silverlight 2), MinHeight (Silverlight 2), MinWidth (Silverlight 2), Name (DependencyObject), Opacity (UIElement), OpacityMask, Projection (Silverlight 3), RenderTransform, RenderTransformOrigin, Resources, Style (Silverlight 2), Tag, TextOptions.TextHintingMode (Silverlight 3), Triggers, UseLayoutRounding (Silverlight 2), VerticalAlignment (Silverlight 2), Visibility, Width (UIElement)

Managed Equivalent

UIElement or FrameworkElement

Remarks

UIElement is abstract and is not returned as that object type by any API in the Silverlight JavaScript API. 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.

UIElement in the JavaScript API reference combines the managed API classes of UIElement and FrameworkElement.