Description
What happened?
My app is frameless, and we implement our own custom titlebar.
When the Find popup is shown, it covers the right part of the titlebar which includes the X button.
It would be nice if we can offset the Find popup a little from the edges, like via an argument to StartAsync
I tried using low-level methods to move the Find popup down. This works when the Find popup is opened, but when I start searching for things, the popup automatically moves back up, so it seems that I can't rely on this.
public virtual void MoveWindowDown(IntPtr hWnd, int pixels)
{
if (hWnd != IntPtr.Zero && GetWindowRect(hWnd, out RECT rect))
{
int newY = rect.top + pixels;
SetWindowPos(hWnd, HWND_TOP, rect.left, newY, 0, 0, SWP_NOZORDER | SWP_NOSIZE);
}
}
Importance
Moderate. My app's user experience is affected, but still usable.
Runtime Channel
Prerelease (Edge Canary/Dev/Beta)
Runtime Version
136.0.3191.0 canary
SDK Version
1.0.3079.0 prerelease
Framework
Winforms
Operating System
Windows 11
OS Version
24H2 - 26100.3194
Repro steps
remove the Form border and press Ctrl+F
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response