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

62 lines
1.3 KiB
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
{
2023-01-25 23:55:30 +08:00
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;
}
2021-07-23 09:42:22 +08:00
2023-01-25 23:55:30 +08:00
public object Addition
{
get; set;
}
2021-07-23 09:42:22 +08:00
2023-01-25 23:55:30 +08:00
public ToolBoxData(string text, string icon, Type type, double width, double height, Size? desiredSize = null, string description = 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();
2023-01-25 23:55:30 +08:00
this.Description = description;
2021-07-23 09:42:22 +08:00
}
}
}