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
IXRResourceDictionaryCollection
Methods
Method |
Description |
---|---|
Adds an event handler for the Destroyed event, which occurs after all of the references to this dependency object are released. |
|
Retrieves the value of the specified attached property. |
|
Retrieves the value of the specified dependency property. |
|
Retrieves the name of this dependency object. |
|
Removes an event handler from the Destroyed event, which occurs after all of the references to this dependency object are released. |
|
Sets the specified attached property to the specified value. |
|
Sets the specified dependency property to the specified value. |
|
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 |