DependencyProperty.RegisterAttached Method (String, Type, Type)
Registers an attached property with the specified property name, property type, and owner type.
Assembly: WindowsBase (in WindowsBase.dll)
static member RegisterAttached : name:string * propertyType:Type * ownerType:Type -> DependencyProperty
The name of the dependency property to register.
The type of the property.
The owner type that is registering the dependency property.
Return ValueType: System.Windows.DependencyProperty
A dependency property identifier that should be used to set the value of a public static readonly field in your class. That identifier is then used to reference the dependency property later, for operations such as setting its value programmatically or obtaining metadata.
An attached property is a property concept defined by Extensible Application Markup Language (XAML). WPF implements attached properties as dependency properties. Because the WPF attached properties are dependency properties, they can have metadata applied that can be used by the general property system for operations such as reporting layout characteristics. For more information, see Attached Properties Overview.
For more information on dependency property registration, see DependencyProperty.
Available since 3.0