mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-14 21:26:35 +08:00
@@ -9,33 +9,10 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
// Wraps info of the dragged object into a class
|
||||
public class DragObject
|
||||
{
|
||||
public Size? DesiredSize
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
public Size? DesiredMinSize
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
public Type ContentType
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
public string Icon
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
public string Text
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
public IColorViewModel ColorViewModel
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
public object DesignerItem
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
public Size? DesiredSize { get; set; }
|
||||
public Type ContentType { get; set; }
|
||||
public string Icon { get; set; }
|
||||
public IColorViewModel ColorViewModel { get; set; }
|
||||
public object DesignerItem { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,10 +36,6 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
public Size? DesiredMinSize
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
public string Description
|
||||
{
|
||||
get; set;
|
||||
@@ -50,7 +46,7 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
get; set;
|
||||
}
|
||||
|
||||
public ToolBoxData(string text, string icon, Type type, double width, double height, Size? desiredSize = null, Size? desiredMinSize = null, string description = null)
|
||||
public ToolBoxData(string text, string icon, Type type, double width, double height, Size? desiredSize = null, string description = null)
|
||||
{
|
||||
this.Text = text;
|
||||
this.Icon = icon;
|
||||
@@ -58,7 +54,6 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
this.Width = width;
|
||||
this.Height = height;
|
||||
this.DesiredSize = desiredSize;
|
||||
this.DesiredMinSize = desiredMinSize;
|
||||
this.ColorViewModel = new ColorViewModel();
|
||||
this.Description = description;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user