DependencyObject.ClearValue Method (DependencyPropertyKey)
Assembly: WindowsBase (in windowsbase.dll)
The key for the dependency property to be cleared.
A DependencyPropertyKey identifies a read-only dependency property for property system operations. Classes that define read-only dependency properties should not expose this key with public access. A publicly exposed key would provide a public code pathway that negated the read-only character of the property, if methods such as ClearValue or SetValue could be called outside the class or assembly, referencing the key.
Clearing the property value by calling ClearValue does not necessarily give a dependency property the default value that is specified in the dependency property metadata; it only specifically clears whatever local value may have been applied. 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 EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.