Skip to content

Commit

Permalink
Merge pull request #357 from bbuerger/patch-2
Browse files Browse the repository at this point in the history
LayoutAutoHideWindowControl: UI automation name
  • Loading branch information
Dirkster99 authored Jul 16, 2022
2 parents 19eacc5 + 175e04d commit 1627d35
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,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.Input;
Expand Down Expand Up @@ -167,7 +168,7 @@ protected override HandleRef BuildWindowCore(HandleRef hwndParent)
Height = 0,
})
{ RootVisual = _internalHostPresenter };

AutomationProperties.SetName(_internalHostPresenter, "InternalWindowHost");
AddLogicalChild(_internalHostPresenter);
Win32Helper.BringWindowToTop(_internalHwndSource.Handle);
return new HandleRef(this, _internalHwndSource.Handle);
Expand Down Expand Up @@ -418,4 +419,4 @@ private void OnResizerDragStarted(object sender, System.Windows.Controls.Primiti

#endregion Private Methods
}
}
}

0 comments on commit 1627d35

Please sign in to comment.