Share via


IXRDependencyObject (Compact 2013)

3/28/2014

This C++ class represents a base class for objects that can both register and own dependency properties in the XAML for Windows Embedded dependency property system.

Syntax

class IXRDependencyObject: public IUnknown

Inheritance Hierarchy

IXRDependencyObject

     IXRBrush

     IXRCacheMode

     IXRColorKeyFrame

     IXRColorKeyFrameCollection

     IXRColumnDefinition

     IXRColumnDefinitionCollection

     IXRControlTemplate

     IXRDoubleCollection

     IXRDoubleKeyFrame

     IXRDoubleKeyFrameCollection

     IXRDrawingAttributes

     IXREasingFunctionBase

     IXREffect

     IXRFrameworkTemplate

     IXRGeneralTransform

     IXRGeometry

     IXRGeometryCollection

     IXRGradientStop

     IXRGradientStopCollection

     IXRImageSource

     IXRTextElement

     IXRInlineCollection

     IXRItemCollection

     IXRKeySpline

     IXRMatrix

     IXRMatrix3D

     IXRObjectKeyFrame

     IXRObjectKeyFrameCollection

     IXRPathFigure

     IXRPathFigureCollection

     IXRPathSegment

     IXRPathSegmentCollection

     IXRPointCollection

     IXRPointKeyFrame

     IXRPointKeyFrameCollection

     IXRProjection

     IXRResourceDictionary

     IXRResourceDictionaryCollection

     IXRRowDefinition

     IXRRowDefinitionCollection

     IXRSetterBase

     IXRSetterBaseCollection

     IXRStroke

     IXRStrokeCollection

     IXRStyle

     IXRStylusInfo

     IXRStylusPoint

     IXRStylusPointCollection

     IXRTextElement

     IXRTimeline

     IXRTimelineCollection

     IXRTransformCollection

     IXRTriggerAction

     IXRTriggerActionCollection

     IXRTriggerBase

     IXRTriggerCollection

     IXRUIElement

     IXRUIElementCollection

     IXRVisualState

     IXRVisualStateCollection

     IXRVisualStateGroup

     IXRVisualStateGroupCollection

     IXRVisualTransition

     IXRVisualTransitionCollection

Methods

Method

Description

IXRDependencyObject::AddDestroyedEventHandler

Adds an event handler for the Destroyed event, which occurs after all of the references to this dependency object are released.

IXRDependencyObject::GetAttachedProperty

Retrieves the value of the specified attached property.

IXRDependencyObject::GetDependencyProperty

Retrieves the value of the specified dependency property.

IXRDependencyObject::GetName

Retrieves the name of this dependency object.

IXRDependencyObject::RemoveDestroyedEventHandler

Removes an event handler from the Destroyed event, which occurs after all of the references to this dependency object are released.

IXRDependencyObject::SetAttachedProperty

Sets the specified attached property to the specified value.

IXRDependencyObject::SetDependencyProperty

Sets the specified dependency property to the specified value.

IXRDependencyObject::SetName

Sets the name of this dependency object.

Thread Safety

Members of this class are thread safe if you previously called IXRApplication::CreateHostFromXaml and supplied it with an XRWindowCreateParams structure that has AllowsMultipleThreadAccess set to true.

Remarks

This C++ class supports the methods on the IUnknown interface.

This is the base object from which most other objects that are used in XAML for Windows Embedded applications are derived. These derived objects are also dependency objects and can represent user-interface (UI) elements, collections, or characteristics that define appearance and behavior.

All these dependency objects can support dependency properties. A dependency property is a property that depends on several other sources for its final calculated value. Several factors can influence the value of a dependency property, including the properties of related UI objects in the presentation layout.

Dependency properties are supported by the XAML for Windows Embedded dependency property system. The dependency property system computes the values of properties and provides system notification about values that have changed.

The IXRDependencyObject class enables dependency property system services on its many derived classes.

IXRDependencyObject services and characteristics include the following:

  • Support for hosting dependency properties
  • Support for hosting attached properties
  • Support for Get and Set utility methods for accessing and modifying values of any dependency properties or attached properties that exist on an IXRDependencyObject derived object
  • A base class for IXRUIElement, from which various UI objects are derived

When you create a class instance, use an IXRDependencyObjectPtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.

.NET Framework Equivalent

System.Windows.DependencyObject

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for Application Management