Class PropertyMetadata
Defines behavior aspects of a dependency property, including conditions it was registered with.
Inheritance
Inherited Members
Namespace: System.Windows
Assembly: OpenSilver.dll
Syntax
public class PropertyMetadata
Constructors
| Improve this Doc View SourcePropertyMetadata()
Initializes a new instance of Windows.UI.Xaml.PropertyMetadata.
Declaration
public PropertyMetadata()
PropertyMetadata(Object)
Initializes a new instance of the PropertyMetadata class, using a property default value.
Declaration
public PropertyMetadata(object defaultValue)
Parameters
Type | Name | Description |
---|---|---|
System.Object | defaultValue | A default value for the property where this PropertyMetadata is applied. |
PropertyMetadata(Object, PropertyChangedCallback)
Initializes a new instance of the PropertyMetadata class, using a property default value and callback reference.
Declaration
public PropertyMetadata(object defaultValue, PropertyChangedCallback propertyChangedCallback)
Parameters
Type | Name | Description |
---|---|---|
System.Object | defaultValue | A default value for the property where this PropertyMetadata is applied. |
PropertyChangedCallback | propertyChangedCallback | A reference to the callback to call for property changed behavior. |
PropertyMetadata(Object, PropertyChangedCallback, CoerceValueCallback)
Type meta construction
Declaration
public PropertyMetadata(object defaultValue, PropertyChangedCallback propertyChangedCallback, CoerceValueCallback coerceValueCallback)
Parameters
Type | Name | Description |
---|---|---|
System.Object | defaultValue | Default value of property |
PropertyChangedCallback | propertyChangedCallback | Called when the property has been changed |
CoerceValueCallback | coerceValueCallback | Called on update of value |
PropertyMetadata(PropertyChangedCallback)
Initializes a new instance of the PropertyMetadata class, using a callback reference.
Declaration
public PropertyMetadata(PropertyChangedCallback propertyChangedCallback)
Parameters
Type | Name | Description |
---|---|---|
PropertyChangedCallback | propertyChangedCallback | A reference to the callback to call for property changed behavior. |
Properties
| Improve this Doc View SourceCallPropertyChangedWhenLoadedIntoVisualTree
Determines if the callback method should be called when the element is added to the visual tree.
Declaration
public WhenToCallPropertyChangedEnum CallPropertyChangedWhenLoadedIntoVisualTree { get; set; }
Property Value
Type | Description |
---|---|
WhenToCallPropertyChangedEnum |
CoerceValueCallback
Gets the method that will be called on update of value.
Declaration
public CoerceValueCallback CoerceValueCallback { get; set; }
Property Value
Type | Description |
---|---|
CoerceValueCallback |
DefaultValue
Gets the default value for the dependency property.
Declaration
public object DefaultValue { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Inherits
Determines if the property's value can be inherited from a parent element to a child element.
Declaration
public bool Inherits { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsSealed
Declaration
protected bool IsSealed { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
MethodToUpdateDom
Gets the method that is called when the object is added to the visual tree, and when the property value changes while the object is already in the visual tree.
Declaration
public MethodToUpdateDom MethodToUpdateDom { get; set; }
Property Value
Type | Description |
---|---|
MethodToUpdateDom |
PropertyChangedCallback
Gets the method that is called when the property value changes.
Declaration
public PropertyChangedCallback PropertyChangedCallback { get; set; }
Property Value
Type | Description |
---|---|
PropertyChangedCallback |