Version

KeepContentInLogicalTree Property

Determines if the Content of the CellControlBase should be allowed to be made to be a logical child of the element.
Syntax
'Declaration
 
Public Shared Property KeepContentInLogicalTree As Boolean
public static bool KeepContentInLogicalTree {get; set;}
Remarks

By default, the Content of a ContentControl is made to be a logical child of the ContentControl. By default the CellControlBase overrides this and prevents the Content from being made a logical child so that inherited properties will follow the visual tree and therefore properties like Foreground can be manipulated within the ControlTemplate (e.g. using VSM). However this property may be set to true prior to any CellControlBase instances being created (e.g. in a static constructor of the main application) to allow the default behavior of the ContentControl.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also