diff --git a/source/Components/AvalonDock/Controls/LayoutFloatingWindowControl.cs b/source/Components/AvalonDock/Controls/LayoutFloatingWindowControl.cs index 2d721ec8..a79021fe 100644 --- a/source/Components/AvalonDock/Controls/LayoutFloatingWindowControl.cs +++ b/source/Components/AvalonDock/Controls/LayoutFloatingWindowControl.cs @@ -14,6 +14,7 @@ This program is provided to you under the terms of the Microsoft Public using System.Linq; using System.Runtime.InteropServices; using System.Windows; +using System.Windows.Automation; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; @@ -701,6 +702,7 @@ protected override HandleRef BuildWindowCore(HandleRef hwndParent) }); _rootPresenter = new Border { Child = new AdornerDecorator { Child = Content }, Focusable = true }; + AutomationProperties.SetName(_rootPresenter, "FloatingWindowHost"); _rootPresenter.SetBinding(Border.BackgroundProperty, new Binding(nameof(Background)) { Source = _owner }); _wpfContentHost.RootVisual = _rootPresenter; _manager = _owner.Model.Root.Manager; @@ -743,4 +745,4 @@ private void Content_SizeChanged(object sender, SizeChangedEventArgs e) #endregion Internal Classes } -} \ No newline at end of file +}