// 手动调用:销毁UI protected void DoDestroyView() { RootView?.DoDestroy(); foreach (var item in MainViews) { item.DoDestroy(); } AllMainViews.RemoveAll(x => MainViews.Contains(x)); MainViews.Clear(); OpenedMainViews.Clear(); GroupViews.Clear(); IgnoreBlockClick.Clear(); IgnoreBlockClickOnce.Clear(); }