Files
aistudio-wpf-diagram/AIStudio.Wpf.DiagramDesigner/Models/ToolBoxData.cs
2023-01-25 23:55:30 +08:00

62 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
namespace AIStudio.Wpf.DiagramDesigner
{
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;
}
public Size? DesiredSize
{
get; set;
}
public string Description
{
get; set;
}
public object Addition
{
get; set;
}
public ToolBoxData(string text, string icon, Type type, double width, double height, Size? desiredSize = null, string description = null)
{
this.Text = text;
this.Icon = icon;
this.Type = type;
this.Width = width;
this.Height = height;
this.DesiredSize = desiredSize;
this.ColorViewModel = new ColorViewModel();
this.Description = description;
}
}
}