https://developercommunity.visualstudio.com/t/Non-resizable-DialogWindow-can-be-resize/10247555
The Visual Studio WPF dialogs (Microsoft.VisualStudio.PlatformUI.DialogWindow) with the resize mode (System.Windows.ResizeMode) set to NoResize
still allow users to resize using the context menu commands.
- Download the project.
- Open the solution in Visual Studio.
Debug -> Start Debugging (F5)
.- In the opened experimental instance:
Tools -> Show Non-Resizable Window
. - Right-click on the title bar to open the context menu. The
Size
,Minimize
andMaximize
commands are enabled and behave in the following way:- Clicking the
Size
command does not allow you to resize. - Clicking the
Minimize
command minimizes the window and minimizes Visual Studio. - Clicking the
Maximize
command maximizes the window so that it takes up the whole screen, including the taskbar.
- Clicking the
Microsoft Visual Studio Professional 2022 Version 17.4.3
Windows 10 Version 21H2 OS Build 19044.2364
- This problem reproduces with the
Help -> About Microsoft Visual Studio
window. - This problem does not reproduce with System.Windows.Window.
- HasMaximizeButton and HasMinimizeButton have no effect on this problem.