运行环境新增了画布相关的属性

This commit is contained in:
fengjiayi
2025-03-22 18:14:48 +08:00
parent f99aff3c2c
commit cf7760ef84
29 changed files with 1179 additions and 1103 deletions

View File

@@ -0,0 +1,50 @@
using CommunityToolkit.Mvvm.ComponentModel;
using Newtonsoft.Json.Linq;
using Serein.Workbench.ViewModels;
using Serein.Workbench.Views;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace Serein.Workbench.Models
{
public partial class FlowCanvasModel : ObservableObject
{
public string Name
{
get
{
var vm = (FlowCanvasViewModel)content.DataContext;
return vm.Name;
}
set
{
var vm = (FlowCanvasViewModel)content.DataContext;
vm.Name = value;
OnPropertyChanged(nameof(Name));
}
}
[ObservableProperty]
private bool _isSelected;
[ObservableProperty]
private bool _isEditing;
[ObservableProperty]
private FlowCanvasView content;
public FlowCanvasModel()
{
}
}
}