Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
/** @property */ public boolean get_OverridesInheritanceBehavior () /** @property */ public void set_OverridesInheritanceBehavior (boolean value)
public function get OverridesInheritanceBehavior () : boolean public function set OverridesInheritanceBehavior (value : boolean)
Property Valuetrue if the property value inheritance should span across certain content boundaries; otherwise, false. The default is false.
The metadata has already been applied to a dependency property operation, so that metadata is sealed and properties of the metadata cannot be set.
This metadata reports a seldom-applied modification to property value inheritance behavior across special parent element-child element boundaries. The canonical example of such a boundary is the contents of a Frame, where the Frame content might get reloaded independently of the existence of the Frame. The desired property system behavior is that property value inheritance should not traverse into the contents of the Frame, because these contents might be elements that the application hosting the frame does not own or control. Specifying metadata with OverridesInheritanceBehavior set to true, as well as specifying Inherits as true, will cause the property on which the metadata is applied to be inheritable even across the Frame boundary or similar boundaries.
Properties on derived classes of PropertyMetadata are typically defined in the object model as read-write. This is so they can be adjusted after initialization of the instance. However, after the metadata is consumed as part of a call to Register, AddOwner, or OverrideMetadata, the property system will seal that metadata instance and properties that convey the specifics of the metadata are now considered immutable. Attempting to set this property after IsSealed is true on this metadata instance will raise an exception.
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.