当"x"变大时(关闭)被按下 [英] do something when the "x" (close) is pressed
本文介绍了当"x"变大时(关闭)被按下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带有取消按钮的模式窗口,当我按下它时会执行某些操作,但是当我按下"x"按钮时却什么也没发生. (关闭).
i have a modal window with a cancel button that do something when i press it, but nothing happended when i press the "x" (close) of this window.
有没有一种方法可以添加功能或消除此"x" ??
Is there a way i can add functionality or to eliminate this "x"??
推荐答案
Hi
使用以下代码.这将帮助您删除自定义模式窗口的X按钮.
Use the below code. This will help you to remove the X button of the custom modal window.
partial void YourScreenName_Created()
{
// Write your code here.
this.FindControl("YourCustomModalWindowName").ControlAvailable += YourScreenName_ControlAvailable;
}
void YourScreenName_ControlAvailable(object sender, ControlAvailableEventArgs e)
{
ChildWindow childWindow = (ChildWindow)e.Control;
childWindow.HasCloseButton = false;
}
希望获得帮助...
致谢
这篇关于当"x"变大时(关闭)被按下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文