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
BitmapImage (Silverlight 2)
Border (Silverlight 2)
Brush (abstract)
ColorKeyFrame (abstract)
DeepZoomImageTileSource (Silverlight 2)
DependencyObject (abstract)
DiscreteObjectKeyFrame (Silverlight 2)
DoubleKeyFrame (abstract)
Geometry (abstract)
MultiScaleImage (Silverlight 2)
ObjectAnimationUsingKeyFrames (Silverlight 2)
ObjectKeyFrameCollection (Silverlight 2)
PasswordBox (Silverlight 2)
PathSegment (abstract)
PointKeyFrame (abstract)
Popup (Silverlight 2)
StackPanel (Silverlight 2)
TextBox (Silverlight 2)
Timeline (abstract)
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.