Version

ProcessVisualTreeOnly Property

Determines if the automation peers for the records and cells should be limited to the peers for the elements that are part of the visual tree.
Syntax
'Declaration
 
Public Shared Property ProcessVisualTreeOnly As Boolean
public static bool ProcessVisualTreeOnly {get; set;}
Remarks

By default the automation peers for list type controls will return peers that represent the items in the collection which then delegate to the peer of the associated container element (when available). In this way objects for which elements have not been created may be accessed and interacted with via the automation peers. In the case of DataPresenter this includes objects such as the Records and Cells. However creating and returning these proxy peers has some performance implications as the UI Automation Tree is larger and automation clients that enumerate the available peers could take longer. Setting this property to true will avoid the creation of these proxy peers. Note that could cause problems with the automation clients so you would need to test with the various automation clients to ensure they are still able to perform their function.

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