* UITabControl: 多页面框架关闭页面时执行UIPage的FormClosed事件

This commit is contained in:
Sunny 2022-06-19 11:29:14 +08:00
parent 60b942b047
commit cbaffee719

View File

@ -29,6 +29,7 @@
* 2022-04-20: V3.1.5 * 2022-04-20: V3.1.5
* 2022-05-11: V3.1.8 使 * 2022-05-11: V3.1.8 使
* 2022-05-17: V3.1.9 * 2022-05-17: V3.1.9
* 2022-06-19: V3.2.0 UIPage的FormClosed事件
******************************************************************************/ ******************************************************************************/
using Sunny.UI.Win32; using Sunny.UI.Win32;
@ -818,6 +819,7 @@ namespace Sunny.UI
if (AutoClosePage) if (AutoClosePage)
{ {
pages[i].Final(); pages[i].Final();
pages[i].Close();
pages[i].Dispose(); pages[i].Dispose();
pages[i] = null; pages[i] = null;
} }