[]
        
(Showing Draft Content)

C1.WinUI.Core.IAutomationProperties.AutomationEnabled

AutomationEnabled Property

AutomationEnabled

Gets or sets a nullable boolean value indicating whether automation is enabled for the element and an automation peer will be created when requested by system.

Declaration
bool? AutomationEnabled { get; set; }
Property AutomationEnabled As Boolean?
Property Value
Type Description
bool?

true to enable automation for this element; false to disable it; null to clear any locally assigned value and revert to the inherited or global default.

Remarks

When set to null, the effective value is determined by the closest ancestor that has a non‑null setting, or by the global default if none exists. Getter cannot return a null value. Implementations are expected to store and retrieve the value using the EnabledProperty attached property.