Init 2022/1/13
WPF 使用 WindowChrome 后需要自己处理最大最小化但是无法触发 Windows 11的Snap Layouts 功能,现在主要的解决方案就是劫持 WM_NCHITTEST 事件,返回 HTMAXBUTTON = 9,目前我在 .net framework 4.5.2 上是无法完美解决,只有在全屏的时候才会调出 Snap Layouts,可能和另一个Windows 的 Size 事件有关暂时原因未知
鼠标HitTest事件 WM\_NCHITTEST 消息 (Winuser.h) - Win32 apps | Microsoft Docs
1. Should WPF add the new theme for Windows11 style? · Issue #4749 · dotnet/wpf (github.com)
其它项目,electorn 最新版本已经支持,Firefox 看起来没打算做,UWP 原生就可以。
Firefox 1718629 - Windows 11 Snap Layouts menu doesn't appear while hovering (mozilla.org)
Windows Terminal Snap Layouts Support: WM\_NCHITTEST should return HTMAXBUTTON, HTMINBUTTON, ... for caption buttons · Issue #9443 · microsoft/terminal (github.com)
UWP 自定义标题栏 Window.SetTitleBar(UIElement) Method (Windows.UI.Xaml) - Windows UWP applications | Microsoft Docs
These are genuinely enormous ideas in concerning blogging.
You have touched some fastidious factors here. Any way keep up wrinting.
гостиничные чеки купить в Екатеринбурге 今天
Spot on with this write-up, I actually think this site needs far more attention.
I'll probably be returning to see more, thanks for the info!
проведение опрессовки системы отопления 15 天前