mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-22 17:58:33 +08:00
实际尺寸之间转换
This commit is contained in:
@@ -20,13 +20,13 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
|
||||
public DesignerItemBase(DesignerItemViewModelBase viewmodel, string reserve = null) : base(viewmodel)
|
||||
{
|
||||
this.Left = viewmodel.Left;
|
||||
this.Top = viewmodel.Top;
|
||||
this.PhysicalLeft = viewmodel.PhysicalLeft;
|
||||
this.PhysicalTop = viewmodel.PhysicalTop;
|
||||
this.Angle = viewmodel.Angle;
|
||||
this.ScaleX = viewmodel.ScaleX;
|
||||
this.ScaleY = viewmodel.ScaleY;
|
||||
this.ItemWidth = viewmodel.ItemWidth;
|
||||
this.ItemHeight = viewmodel.ItemHeight;
|
||||
this.PhysicalItemWidth = viewmodel.PhysicalItemWidth;
|
||||
this.PhysicalItemHeight = viewmodel.PhysicalItemHeight;
|
||||
this.Icon = viewmodel.Icon;
|
||||
this.ItemTypeName = viewmodel.GetType().FullName;
|
||||
this.Margin = viewmodel.Margin;
|
||||
@@ -34,37 +34,70 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public double Left { get; set; }
|
||||
public double PhysicalLeft
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public double Top { get; set; }
|
||||
public double PhysicalTop
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public double Angle { get; set; }
|
||||
public double Angle
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public double ScaleX { get; set; }
|
||||
public double ScaleX
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public double ScaleY { get; set; }
|
||||
public double ScaleY
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public double Margin { get; set; }
|
||||
public double Margin
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public double ItemWidth { get; set; }
|
||||
public double PhysicalItemWidth
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public double ItemHeight { get; set; }
|
||||
public double PhysicalItemHeight
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public string Icon { get; set; }
|
||||
public string Icon
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public string Reserve { get; set; }
|
||||
public string Reserve
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public string ItemTypeName { get; set; }
|
||||
public string ItemTypeName
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user