记录界面优化
This commit is contained in:
@@ -8,7 +8,13 @@ using UIShare.ViewModelBase;
|
||||
|
||||
namespace SettingModule.ViewModels
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 设置界面 VM —— 复用与 RecordView/MonitorView 相同的范式:
|
||||
/// - ScopedContext 隔离(每工位独立一份)
|
||||
/// - 双击展开(ExpandViewEvent + GlobalInfo.CurrentScope)
|
||||
/// - OnNavigatedTo 取 Name 参数作为工位标题
|
||||
/// 设备数据来源:注入的 SystemConfig.DeviceList(Scoped 注入,每工位一份)。
|
||||
/// </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; }
|
||||
|
||||
Reference in New Issue
Block a user