Compartilhar via


XRDependencyPropertyMetaData (Compact 2013)

3/28/2014

This structure contains information that reports or applies metadata for a dependency property or an attached property.

Syntax

struct XRDependencyPropertyMetaData
{
  DWORD                           Size;
  PFN_PROPERTY_CHANGE             pfnPropertyChangeNotification;
  PFN_TYPE_CONVERTER              pfnTypeConverter;
  PFN_ENUMERABLE_PROPERTY_CREATE  pfnEnumerableCreation;
  XRValue                         DefaultValue;
};

Members

  • Size
    Total size, in bytes, allocated to this data structure.
  • pfnPropertyChangeNotification
    Name of the PFN_PROPERTY_CHANGE callback method that XAML for Windows Embedded invokes when the value of the associated property changes.
  • pfnTypeConverter
    Name of the PFN_TYPE_CONVERTER callback method that provides a type-converter implementation for classes that XAML for Windows Embedded converts from XAML to C++ while parsing the source XAML.
  • pfnEnumerableCreation
    Name of the PFN_ENUMERABLE_PROPERTY_CREATE callback method that XAML for Windows Embedded invokes to create a container for an enumerable property.
  • DefaultValue
    XRValue object that indicates the default value of the property if XAML for Windows Embedded cannot determine the value from the local value, style, inheritance, or other characteristics.

Remarks

When you create a user-defined control, you can pass this structure in a call to IXRApplication::RegisterDependencyProperty or IXRApplication::RegisterAttachedProperty to provide metadata for the dependency or attached property.

.NET Framework Equivalent

System.Windows.PropertyMetadata

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

XAML for Windows Embedded Structures