UIPropertyMetadata.UIPropertyMetadata(Object, PropertyChangedCallback, CoerceValueCallback, Boolean) Constructor

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.

Namespace: System.Windows
Assembly: PresentationCore (in presentationcore.dll)

public UIPropertyMetadata (
	Object defaultValue,
	PropertyChangedCallback propertyChangedCallback,
	CoerceValueCallback coerceValueCallback,
	bool isAnimationProhibited
)
public UIPropertyMetadata (
	Object defaultValue, 
	PropertyChangedCallback propertyChangedCallback, 
	CoerceValueCallback coerceValueCallback, 
	boolean isAnimationProhibited
)
public function UIPropertyMetadata (
	defaultValue : Object, 
	propertyChangedCallback : PropertyChangedCallback, 
	coerceValueCallback : CoerceValueCallback, 
	isAnimationProhibited : boolean
)
You cannot use constructors in XAML.

Parameters

defaultValue

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

propertyChangedCallback

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

coerceValueCallback

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

isAnimationProhibited

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: