Compartir a través de


DependencyObject

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

Provides Silverlight property system services.

Syntax Notes

See Derived Objects for syntax information.

Derived Objects

Accessibility

ArcSegment

BeginStoryboard

BezierSegment

BitmapImage (Silverlight 2)

Border (Silverlight 2)

Brush (abstract)

Canvas

ColorAnimation

ColorAnimationUsingKeyFrames

Color

ColorKeyFrame (abstract)

ColorKeyFrameCollection

DeepZoomImageTileSource (Silverlight 2)

DependencyObject (abstract)

DiscreteColorKeyFrame

DiscreteDoubleKeyFrame

DiscreteObjectKeyFrame (Silverlight 2)

DiscretePointKeyFrame

DoubleAnimation

DoubleAnimationUsingKeyFrames

DoubleKeyFrame (abstract)

DoubleKeyFrameCollection

Downloader

DrawingAttributes

Duration

Ellipse

EllipseGeometry

EventTrigger

Geometry (abstract)

GeometryCollection

GeometryGroup

Glyphs

GradientStopCollection

GradientStop

Image

ImageBrush

InkPresenter

Inlines

KeySpline

KeyTime

LinearColorKeyFrame

LinearDoubleKeyFrame

LinearGradientBrush

LinearPointKeyFrame

LineBreak

Line

LineGeometry

LineSegment

Matrix

MatrixTransform

MediaAttribute

MediaAttributeCollection

MediaElement

MultiScaleImage (Silverlight 2)

ObjectAnimationUsingKeyFrames (Silverlight 2)

ObjectKeyFrameCollection (Silverlight 2)

PasswordBox (Silverlight 2)

Path

PathFigure

PathFigureCollection

PathGeometry

PathSegment (abstract)

PathSegmentCollection

PointAnimation

PointAnimationUsingKeyFrames

Point

PointKeyFrame (abstract)

PointKeyFrameCollection

PolyBezierSegment

Polygon

Polyline

PolyLineSegment

PolyQuadraticBezierSegment

Popup (Silverlight 2)

QuadraticBezierSegment

RadialGradientBrush

Rect

Rectangle

RectangleGeometry

RepeatBehavior

ResourceDictionary

RotateTransform

Run

RuntimeErrorEventArgs

ScaleTransform

SkewTransform

SolidColorBrush

SplineColorKeyFrame

SplineDoubleKeyFrame

SplinePointKeyFrame

StackPanel (Silverlight 2)

Storyboard

Stroke

StrokeCollection

StylusInfo

StylusPoint

StylusPointCollection

TextBlock

TextBox (Silverlight 2)

Timeline (abstract)

TimelineCollection

TimelineMarkerCollection

TimelineMarker

TimelineMarkerEventArgs

TimeSpan

TransformCollection

TransformGroup

TranslateTransform

TriggerActionCollection

TriggerCollection

VideoBrush

VisualCollection

Properties

Name

Managed Equivalent

DependencyObject

Remarks

The DependencyObject class enables Silverlight property system services for its derived objects, such as UIElement. DependencyObject provides get and set utility methods for values of properties for the DependencyObject class.

The DependencyObject class also supports the ability to get references to other objects in the runtime tree. This can be accomplished by setting the Name property at first in XAML, and then obtaining a reference to the object at run time with FindName.

Some features that enable input are not exposed by DependencyObject. Instead, they are available in the UIElement class. In addition, some objects that are derived from DependencyObject, such as geometries, do not support input events because they are not also an instance of UIElement. Instead, you must process input that comes from the containing UIElement object, such as a Path object, which contains the geometries as data.

Under the managed API, some objects that are listed in the JavaScript "Applies To" list are not truly instances of the managed DependencyObject class. For example, this applies to various Args classes. If you are using the managed API, use the class hierarchy to determine whether the managed object can be cast to DependencyObject.

For more information about the Silverlight property system, see Dependency Properties Overview. This topic is written primarily for users of the managed API, and might not have code examples or specific information that address JavaScript API scenarios.

See Also

Reference