DependencyObject.InvalidateProperty Method

Re-evaluates the effective value for the specified dependency property

Namespace: System.Windows
Assembly: WindowsBase (in windowsbase.dll)

public void InvalidateProperty (
	DependencyProperty dp
public void InvalidateProperty (
	DependencyProperty dp
public function InvalidateProperty (
	dp : DependencyProperty
You cannot use methods in XAML.



The DependencyProperty identifier of the property to invalidate.

When you call InvalidateProperty, any associated and applicable CoerceValueCallback or PropertyChangedCallback functions registered for that dependency property might be invoked.

Calling InvalidateProperty on a property that has its local value set will have no effect, because the local value takes precedence over other property system inputs, except for animations. However, you could call ClearValue, then call InvalidateProperty. For more information, see Dependency Property Value Precedence.

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

Community Additions