Class DependencyProperty
Represents a dependency property that is registered with the dependency property system. Dependency properties provide support for value expressions, data binding, animation, and property change notification.
Inheritance
System.Object
DependencyProperty
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: System.Windows
Assembly: OpenSilver.dll
Syntax
public class DependencyProperty
Fields
| Improve this Doc View SourceUnsetValue
Declaration
public static readonly object UnsetValue
Field Value
Type | Description |
---|---|
System.Object |
Properties
| Improve this Doc View SourceIsAttached
Declaration
public bool IsAttached { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceGetMetadata(Type)
Declaration
public PropertyMetadata GetMetadata(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type |
Returns
Type | Description |
---|---|
PropertyMetadata |
OverrideMetadata(Type, PropertyMetadata)
Declaration
public void OverrideMetadata(Type newOwnerType, PropertyMetadata typeMetadata)
Parameters
Type | Name | Description |
---|---|---|
System.Type | newOwnerType | |
PropertyMetadata | typeMetadata |
Register(String, Type, Type, PropertyMetadata)
Registers a dependency property with the specified property name, property type, owner type, and property metadata.
Declaration
public static DependencyProperty Register(string name, Type propertyType, Type ownerType, PropertyMetadata typeMetadata)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The property name. |
System.Type | propertyType | The type of the property. |
System.Type | ownerType | The type of the property's owner. |
PropertyMetadata | typeMetadata | The property metadata. |
Returns
Type | Description |
---|---|
DependencyProperty | The DependencyProperty. |
RegisterAttached(String, Type, Type, PropertyMetadata)
Declaration
public static DependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType, PropertyMetadata typeMetadata)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.Type | propertyType | |
System.Type | ownerType | |
PropertyMetadata | typeMetadata |
Returns
Type | Description |
---|---|
DependencyProperty |
ToString()
Returns the DependencyProperty as a string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The DependencyProperty as a string. |
Overrides
System.Object.ToString()