记录界面优化

This commit is contained in:
czj
2026-06-05 11:54:35 +08:00
parent 570c0be397
commit fc53a944dd
3 changed files with 400 additions and 265 deletions

View File

@@ -8,7 +8,13 @@ using UIShare.ViewModelBase;
namespace SettingModule.ViewModels
{
/// <summary>
/// 设置界面 VM —— 复用与 RecordView/MonitorView 相同的范式:
/// - ScopedContext 隔离(每工位独立一份)
/// - 双击展开ExpandViewEvent + GlobalInfo.CurrentScope
/// - OnNavigatedTo 取 Name 参数作为工位标题
/// 设备数据来源:注入的 SystemConfig.DeviceListScoped 注入,每工位一份)。
/// </summary>
public class SettingViewModel : NavigateViewModelBase, IRegionMemberLifetime, IDisposable
{
#region
@@ -16,6 +22,14 @@ namespace SettingModule.ViewModels
private readonly SystemConfig _systemConfig;
#endregion
#region XAML
/// <summary>
/// 公开 SystemConfig 实例供 XAML 绑定Tab 2"系统参数"页用)。
/// 这是 Scoped 实例,每个工位一份,互不影响。
/// </summary>
public SystemConfig SystemConfig => _systemConfig;
#endregion
#region /
public bool KeepAlive => true;
public ScopedContext _scopedContext { get; }