FrameworkElement.InheritanceBehavior Property

Gets or sets the scope limits for property value inheritance and resource key lookup.

Namespace: System.Windows
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:

protected internal InheritanceBehavior InheritanceBehavior { get; set; }
/** @property */
protected InheritanceBehavior get_InheritanceBehavior ()

/** @property */
protected void set_InheritanceBehavior (InheritanceBehavior value)

protected internal function get InheritanceBehavior () : InheritanceBehavior

protected internal function set InheritanceBehavior (value : InheritanceBehavior)

You cannot use this property in XAML.

Property Value

A value of the enumeration. The default is Default.

Certain boundaries in the element tree set InheritanceBehavior to deliberately limit the scope of inheritance behavior, or to force resource lookup to check the application resources.

If you want your derived class to set this property, you should do so within the static constructor or in other initialization routines.

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