Files
serein-flow/Workbench/Models/TabModel.cs
2025-03-22 18:14:48 +08:00

51 lines
1.1 KiB
C#

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()
{
}
}
}