편집

다음을 통해 공유


UIPropertyMetadata Constructors

Definition

Initializes a new instance of the UIPropertyMetadata class.

Overloads

UIPropertyMetadata()

Initializes a new instance of the UIPropertyMetadata class.

UIPropertyMetadata(Object)

Initializes a new instance of the UIPropertyMetadata class, with the specified default value for the property.

UIPropertyMetadata(PropertyChangedCallback)

Initializes a new instance of the UIPropertyMetadata class, with the specified PropertyChanged callback.

UIPropertyMetadata(Object, PropertyChangedCallback)

Initializes a new instance of the UIPropertyMetadata class, with the specified PropertyChanged callback.

UIPropertyMetadata(Object, PropertyChangedCallback, CoerceValueCallback)

Initializes a new instance of the UIPropertyMetadata class, with the specified default value and callbacks.

UIPropertyMetadata(Object, PropertyChangedCallback, CoerceValueCallback, Boolean)

Initializes a new instance of the UIPropertyMetadata class, with the specified default value and callbacks, and a Boolean used to disable animations on the property.

UIPropertyMetadata()

Initializes a new instance of the UIPropertyMetadata class.

public:
 UIPropertyMetadata();
public UIPropertyMetadata ();
Public Sub New ()

Applies to

UIPropertyMetadata(Object)

Initializes a new instance of the UIPropertyMetadata class, with the specified default value for the property.

public:
 UIPropertyMetadata(System::Object ^ defaultValue);
public UIPropertyMetadata (object defaultValue);
new System.Windows.UIPropertyMetadata : obj -> System.Windows.UIPropertyMetadata
Public Sub New (defaultValue As Object)

Parameters

defaultValue
Object

The default value of the dependency property, usually provided as a value of some specific type.

Applies to

UIPropertyMetadata(PropertyChangedCallback)

Initializes a new instance of the UIPropertyMetadata class, with the specified PropertyChanged callback.

public:
 UIPropertyMetadata(System::Windows::PropertyChangedCallback ^ propertyChangedCallback);
public UIPropertyMetadata (System.Windows.PropertyChangedCallback propertyChangedCallback);
new System.Windows.UIPropertyMetadata : System.Windows.PropertyChangedCallback -> System.Windows.UIPropertyMetadata
Public Sub New (propertyChangedCallback As PropertyChangedCallback)

Parameters

propertyChangedCallback
PropertyChangedCallback

Reference to a handler implementation that is to be called by the property system whenever the effective value of the property changes.

Applies to

UIPropertyMetadata(Object, PropertyChangedCallback)

Initializes a new instance of the UIPropertyMetadata class, with the specified PropertyChanged callback.

public:
 UIPropertyMetadata(System::Object ^ defaultValue, System::Windows::PropertyChangedCallback ^ propertyChangedCallback);
public UIPropertyMetadata (object defaultValue, System.Windows.PropertyChangedCallback propertyChangedCallback);
new System.Windows.UIPropertyMetadata : obj * System.Windows.PropertyChangedCallback -> System.Windows.UIPropertyMetadata
Public Sub New (defaultValue As Object, propertyChangedCallback As PropertyChangedCallback)

Parameters

defaultValue
Object

The default value of the dependency property, usually provided as a value of some specific type.

propertyChangedCallback
PropertyChangedCallback

Reference to a handler implementation that is to be called by the property system whenever the effective value of the property changes.

Applies to

UIPropertyMetadata(Object, PropertyChangedCallback, CoerceValueCallback)

Initializes a new instance of the UIPropertyMetadata class, with the specified default value and callbacks.

public:
 UIPropertyMetadata(System::Object ^ defaultValue, System::Windows::PropertyChangedCallback ^ propertyChangedCallback, System::Windows::CoerceValueCallback ^ coerceValueCallback);
public UIPropertyMetadata (object defaultValue, System.Windows.PropertyChangedCallback propertyChangedCallback, System.Windows.CoerceValueCallback coerceValueCallback);
new System.Windows.UIPropertyMetadata : obj * System.Windows.PropertyChangedCallback * System.Windows.CoerceValueCallback -> System.Windows.UIPropertyMetadata
Public Sub New (defaultValue As Object, propertyChangedCallback As PropertyChangedCallback, coerceValueCallback As CoerceValueCallback)

Parameters

defaultValue
Object

The default value of the dependency property, usually provided as a value of some specific type.

propertyChangedCallback
PropertyChangedCallback

Reference to a handler implementation that is to be called by the property system whenever the effective value of the property changes.

coerceValueCallback
CoerceValueCallback

Reference to a handler implementation that is to be called whenever the property system calls CoerceValue(DependencyProperty) against this property.

Applies to

UIPropertyMetadata(Object, PropertyChangedCallback, CoerceValueCallback, Boolean)

Initializes a new instance of the UIPropertyMetadata class, with the specified default value and callbacks, and a Boolean used to disable animations on the property.

public:
 UIPropertyMetadata(System::Object ^ defaultValue, System::Windows::PropertyChangedCallback ^ propertyChangedCallback, System::Windows::CoerceValueCallback ^ coerceValueCallback, bool isAnimationProhibited);
public UIPropertyMetadata (object defaultValue, System.Windows.PropertyChangedCallback propertyChangedCallback, System.Windows.CoerceValueCallback coerceValueCallback, bool isAnimationProhibited);
new System.Windows.UIPropertyMetadata : obj * System.Windows.PropertyChangedCallback * System.Windows.CoerceValueCallback * bool -> System.Windows.UIPropertyMetadata
Public Sub New (defaultValue As Object, propertyChangedCallback As PropertyChangedCallback, coerceValueCallback As CoerceValueCallback, isAnimationProhibited As Boolean)

Parameters

defaultValue
Object

The default value of the dependency property, usually provided as a value of some specific type.

propertyChangedCallback
PropertyChangedCallback

Reference to a handler implementation that is to be called by the property system whenever the effective value of the property changes.

coerceValueCallback
CoerceValueCallback

Reference to a handler implementation that is to be called whenever the property system calls CoerceValue(DependencyProperty) against this property.

isAnimationProhibited
Boolean

Set to true to prevent the property system from animating the property that this metadata is applied to. Such properties will raise run time exceptions if animations of them are attempted. The default is false.

Applies to