diff --git a/source/Components/AvalonDock/Controls/LayoutFloatingWindowControl.cs b/source/Components/AvalonDock/Controls/LayoutFloatingWindowControl.cs index 5e282414..c88158a6 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; @@ -768,6 +769,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; @@ -810,4 +812,4 @@ private void Content_SizeChanged(object sender, SizeChangedEventArgs e) #endregion Internal Classes } -} \ No newline at end of file +}