.NET Framework Class Library for Silverlight
DependencyProperty..::.Register Method
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Registers a dependency property with the specified property name, property type, owner type, and property changed callback for the property.
Namespace:
System.Windows Assembly:
System.Windows (in System.Windows.dll)
Visual Basic (Declaration)
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
Return Value
Type:
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.
Reference
Other Resources