stepmanager的UI更新优化
This commit is contained in:
@@ -380,6 +380,12 @@ namespace TestingModule.ViewModels
|
||||
UnsubscribeStepCollections();
|
||||
SubscribeStepCollections();
|
||||
|
||||
// 通知 UI 刷新 DisplaySteps(导航状态虽然引用同一 Program,但集合实例已变)
|
||||
RaisePropertyChanged(nameof(MainDisplaySteps));
|
||||
RaisePropertyChanged(nameof(ErrorDisplaySteps));
|
||||
RaisePropertyChanged(nameof(MainCurrentProgram));
|
||||
RaisePropertyChanged(nameof(ErrorCurrentProgram));
|
||||
|
||||
// 集合被整体替换后,对新集合重新编号
|
||||
Application.Current?.Dispatcher.BeginInvoke(new Action(() =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user