* UITabControl: 关闭TabPage并销毁TabPage
This commit is contained in:
parent
8b8f1bc68d
commit
da7b58168c
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -589,8 +589,9 @@ namespace Sunny.UI
|
||||
}
|
||||
}
|
||||
|
||||
TabPages.Remove(TabPages[index]);
|
||||
TabPages.Remove(tabPage);
|
||||
AfterRemoveTabPage?.Invoke(this, index);
|
||||
tabPage.Dispose();
|
||||
|
||||
if (TabCount == 0) return;
|
||||
if (index == 0) SelectedIndex = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user