Files
aistudio-wpf-diagram/AIStudio.Wpf.DiagramDesigner/Models/ToolBoxData.cs

33 lines
982 B
C#
Raw Normal View History

2021-07-23 09:42:22 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
2022-12-04 23:07:20 +08:00
using System.Windows;
2021-07-23 09:42:22 +08:00
2023-01-12 23:02:53 +08:00
namespace AIStudio.Wpf.DiagramDesigner
2021-07-23 09:42:22 +08:00
{
public class ToolBoxData
{
public string Text { get; protected set; }
public string Icon { get; protected set; }
public Type Type { get; protected set; }
public IColorViewModel ColorViewModel { get; set; }
public double Width { get; set; }
public double Height { get; set; }
2022-12-04 23:07:20 +08:00
public Size? DesiredSize{ get; set; }
2021-07-23 09:42:22 +08:00
public object Addition { get; set; }
2022-12-04 23:07:20 +08:00
public ToolBoxData(string text, string icon, Type type, double width, double height, Size? desiredSize = null)
2021-07-23 09:42:22 +08:00
{
this.Text = text;
this.Icon = icon;
this.Type = type;
this.Width = width;
2022-12-04 23:07:20 +08:00
this.Height = height;
this.DesiredSize = desiredSize;
2021-07-23 09:42:22 +08:00
this.ColorViewModel = new ColorViewModel();
}
}
}