分离出一个小demo

This commit is contained in:
艾竹
2022-11-30 19:07:40 +08:00
parent 513937c1d6
commit 13f30f23d8
25 changed files with 377 additions and 47 deletions

View File

@@ -0,0 +1,21 @@
using System;
using System.Windows.Media;
using AIStudio.Wpf.DiagramDesigner.Helpers;
namespace AIStudio.Wpf.SFC.Models
{
public class SFCToolBoxData : ToolBoxData
{
public SFCNodeKinds Kind
{
get; set;
}
public SFCToolBoxData(SFCNodeKinds kind, Type type, double width = 32, double height = 32) : base(null, null, type, width, height)
{
Kind = kind;
ColorViewModel.LineColor.Color = Colors.Gray;
ColorViewModel.FillColor.Color = Colors.Blue;
}
}
}