From c17c76e90fc6bfeb35cd76f12b7ee2c2546a7aa0 Mon Sep 17 00:00:00 2001 From: "zhengxuan.zhang" Date: Tue, 4 Aug 2026 09:49:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=86=E7=BB=84=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E7=94=9F=E6=88=90=E6=A3=80=E6=B5=8B=E6=B1=A0=E5=90=8E?= =?UTF-8?q?=E4=B8=8B=E4=B8=80=E6=AD=A5=E6=8C=89=E9=92=AE=E4=B8=8D=E5=88=B7?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pool 属性 setter 只做 SetProperty,未触发 UpdateNavigationState, 而生成检测池时 CurrentStage 赋值前后相同不会触发导航状态刷新, 导致分组变蓝后 CanGoNext 停留在旧值,下一步按钮无法点击。 Co-Authored-By: Claude Sonnet 5 --- .../InspectionTaskWizardViewModel.cs | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/XplorePlane/ViewModels/Inspection/TaskWizard/InspectionTaskWizardViewModel.cs b/XplorePlane/ViewModels/Inspection/TaskWizard/InspectionTaskWizardViewModel.cs index 63f47cd7..c3e2a5cd 100644 --- a/XplorePlane/ViewModels/Inspection/TaskWizard/InspectionTaskWizardViewModel.cs +++ b/XplorePlane/ViewModels/Inspection/TaskWizard/InspectionTaskWizardViewModel.cs @@ -121,7 +121,11 @@ namespace XplorePlane.ViewModels.Inspection.TaskWizard public InspectionPool? Pool { get => _pool; - set => SetProperty(ref _pool, value); + set + { + if (SetProperty(ref _pool, value)) + UpdateNavigationState(); + } } private CalibrationResult? _taskCalibrationResult; @@ -359,12 +363,12 @@ namespace XplorePlane.ViewModels.Inspection.TaskWizard public DelegateCommand LoadWorkpieceCommand { get; } public DelegateCommand ApplyPipelineCommand { get; } - public DelegateCommand RunBgaDetectionCommand { get; } - public DelegateCommand GeneratePoolCommand { get; } - public DelegateCommand ApplyBubbleParametersCommand { get; } - public DelegateCommand RunCalibrationCommand { get; } - public DelegateCommand StartScanningCommand { get; } - public DelegateCommand SavePlanCommand { get; } + public DelegateCommand RunBgaDetectionCommand { get; } //bga识别 + public DelegateCommand GeneratePoolCommand { get; } //生成检测池 + public DelegateCommand ApplyBubbleParametersCommand { get; } //应用气孔参数 + public DelegateCommand RunCalibrationCommand { get; } //校准 + public DelegateCommand StartScanningCommand { get; } //开始扫描 + public DelegateCommand SavePlanCommand { get; } //保存计划 public DelegateCommand GoNextCommand { get; } public DelegateCommand GoBackCommand { get; } public DelegateCommand CloseWizardCommand { get; }