开发者

Title is missing on a WPF's tool window when DPI setting 125-150%

开发者 https://www.devze.com 2023-02-08 20:18 出处:网络
When WindowStyle=\"ToolWindow\" and 开发者_开发百科ResizeMode=\"NoResize\" and system DPI is 125-150% the text on the titlebar disappears. I\'m running Windows 7 and WPF 3.5

When WindowStyle="ToolWindow" and 开发者_开发百科ResizeMode="NoResize" and system DPI is 125-150% the text on the titlebar disappears. I'm running Windows 7 and WPF 3.5 Any idea why is this happening?


I noticed this yesterday. The ToolWindow part and the DPI are fine, but adding the NoResize causes this.


I had this problem as well with the following:

<Window SizeToContent="WidthAndHeight" ResizeMode="NoResize" WindowStyle="ToolWindow" Title=Blah">

Switching to WindowStyle="SingleBorderWindow" fixed the issue of the Title text not appearing. So if you aren't set on using a ToolWindow, this works too.

0

精彩评论

暂无评论...
验证码 换一张
取 消