mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-17 06:36:36 +08:00
mind
This commit is contained in:
@@ -5,6 +5,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Media;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
@@ -32,6 +33,8 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
this.ItemTypeName = viewmodel.GetType().FullName;
|
||||
this.Margin = viewmodel.Margin;
|
||||
this.Reserve = reserve;
|
||||
this.CornerRadius = viewmodel.CornerRadius;
|
||||
this.BorderThickness = viewmodel.BorderThickness;
|
||||
}
|
||||
|
||||
[XmlAttribute("Left")]
|
||||
@@ -102,6 +105,18 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public CornerRadius CornerRadius
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public Thickness BorderThickness
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
this.PhysicalItemWidth = designer.PhysicalItemWidth;
|
||||
this.PhysicalItemHeight = designer.PhysicalItemHeight;
|
||||
this.Icon = designer.Icon;
|
||||
this.CornerRadius = designer.CornerRadius;
|
||||
this.BorderThickness = designer.BorderThickness;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -473,6 +475,32 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
}
|
||||
}
|
||||
|
||||
private CornerRadius _cornerRadius = new CornerRadius(3);
|
||||
public CornerRadius CornerRadius
|
||||
{
|
||||
get
|
||||
{
|
||||
return _cornerRadius;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetProperty(ref _cornerRadius, value);
|
||||
}
|
||||
}
|
||||
|
||||
private Thickness _borderThickness = new Thickness(1);
|
||||
public Thickness BorderThickness
|
||||
{
|
||||
get
|
||||
{
|
||||
return _borderThickness;
|
||||
}
|
||||
set
|
||||
{
|
||||
SetProperty(ref _borderThickness, value);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 连接点是否可以按偏移自定义
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user