diff --git a/src/Avalonia.Controls/Automation/Peers/ExpanderAutomationPeer.cs b/src/Avalonia.Controls/Automation/Peers/ExpanderAutomationPeer.cs index 99566cdd4c..dd8f91e837 100644 --- a/src/Avalonia.Controls/Automation/Peers/ExpanderAutomationPeer.cs +++ b/src/Avalonia.Controls/Automation/Peers/ExpanderAutomationPeer.cs @@ -13,16 +13,11 @@ namespace Avalonia.Controls.Automation.Peers owner.PropertyChanged += Owner_PropertyChanged; } - protected override string? GetNameCore() - { - return base.GetNameCore(); - } protected override string GetClassNameCore() { return "Expander"; } - protected override bool IsContentElementCore() => true; - protected override bool IsControlElementCore() => true; + protected override AutomationControlType GetAutomationControlTypeCore() { return AutomationControlType.Group;