且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何禁用WPF页面中的关闭按钮(非WPF窗口)

更新时间:2023-02-20 15:20:53

在WPF中,这些问题的答案几乎总是是替换呈现该区域的模板,并根据需要进行更改.
The answer to these questions in WPF is almost always to replace the template that renders that area, and change it as required.


我删除了重复的问题,我敢肯定这是偶然的,你不是故意这么无礼.

您显然不使用SQL隐藏关闭按钮,我也会为您修复标签.

在WPF中,将窗口样式设置为none无效,而是在页面的XAML中而不是代码中进行.
I deleted your duplicate question, I''m sure it was an accident and that you didn''t mean to be so rude.

You plainly do not use SQL to hide a close button, I''ll fix your tags for you, too.

Setting the window style to none does not work in WPF, you do that in the XAML for the page, not in code.