From 2bcbbde723d4b09c6a0c9f1d358522e8f8682383 Mon Sep 17 00:00:00 2001 From: Melissa Date: Mon, 19 Jan 2026 11:11:15 +0100 Subject: [PATCH] Fixed title bar appearing in content element tree (#20485) --- .../Automation/Peers/TitleBarAutomationPeer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Controls/Automation/Peers/TitleBarAutomationPeer.cs b/src/Avalonia.Controls/Automation/Peers/TitleBarAutomationPeer.cs index e6920c1e02..4bd606dd6e 100644 --- a/src/Avalonia.Controls/Automation/Peers/TitleBarAutomationPeer.cs +++ b/src/Avalonia.Controls/Automation/Peers/TitleBarAutomationPeer.cs @@ -10,7 +10,7 @@ internal class TitleBarAutomationPeer : ControlAutomationPeer { } - protected override bool IsContentElementCore() => true; + protected override bool IsContentElementCore() => false; protected override string GetClassNameCore() {