Back to Devexpress

CompatibilitySettings.EnableLayoutItemAutomationPeerLabeledByCalculation Property

corelibraries-devexpress-dot-xpf-dot-core-dot-compatibilitysettings-440a91f4.md

latest2.1 KB
Original Source

CompatibilitySettings.EnableLayoutItemAutomationPeerLabeledByCalculation Property

Gets or sets whether to automatically calculate the LabeledBy property for child elements of a LayoutItemAutomationPeer.

Namespace : DevExpress.Xpf.Core

Assembly : DevExpress.Data.Desktop.v25.2.dll

NuGet Packages : DevExpress.Data.Desktop, DevExpress.ExpressApp.Win.Design

Declaration

csharp
public static bool EnableLayoutItemAutomationPeerLabeledByCalculation { get; set; }
vb
Public Shared Property EnableLayoutItemAutomationPeerLabeledByCalculation As Boolean

Property Value

TypeDescription
Boolean

true to automatically calculate the LabeledBy property for child elements of a LayoutItemAutomationPeer; otherwise, false.

|

Remarks

The EnableLayoutItemAutomationPeerLabeledByCalculation static property specifies whether LabeledBy and Name attached properties are automatically specified for child automation peers of a LayoutItemAutomationPeer.

This behavior improves accessibility and support for UI Automation tools. In some instances, it may break existing UI Automation tests that rely on the absence of these labels. To maintain compatibility with legacy test suites, disable the EnableLayoutItemAutomationPeerLabeledByCalculation setting to revert to the previous behavior.

See Also

CompatibilitySettings Class

CompatibilitySettings Members

DevExpress.Xpf.Core Namespace