Registers a dependency property with the specified property name, property type, owner type, and property changed callback for the property.
Public Shared Function Register ( _ name As String, _ propertyType As Type, _ ownerType As Type, _ propertyChangedCallback As PropertyChangedCallback _ ) As DependencyProperty
Dim name As String Dim propertyType As Type Dim ownerType As Type Dim propertyChangedCallback As PropertyChangedCallback Dim returnValue As DependencyProperty returnValue = DependencyProperty.Register(name, _ propertyType, ownerType, propertyChangedCallback)
public static DependencyProperty Register( string name, Type propertyType, Type ownerType, PropertyChangedCallback propertyChangedCallback )
public: static DependencyProperty^ Register( String^ name, Type^ propertyType, Type^ ownerType, PropertyChangedCallback^ propertyChangedCallback )
public static function Register( name : String, propertyType : Type, ownerType : Type, propertyChangedCallback : PropertyChangedCallback ) : DependencyProperty
The name of the dependency property to register.
The type of the property.
The owner type that is registering the dependency property.
A PropertyChangedCallback implementation reference.
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.