如何禁用WPF页面中的关闭按钮(非WPF窗口) [英] How to disable close button in WPF Page(Not WPF window)

查看:567
本文介绍了如何禁用WPF页面中的关闭按钮(非WPF窗口)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,

我想在加载时禁用WPF弹出页面中的关闭按钮

在某些站点中搜索时,有仅禁用WPF窗口而不是WPF页面的代码.


请回答我...

Sir,

I want to disable close button in WPF popup page at loading time

When I searched in some sites there is the code to disable the WPF window only, not the WPF page.


Pls answer me...

推荐答案

在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.


这篇关于如何禁用WPF页面中的关闭按钮(非WPF窗口)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆