mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-05 00:37:19 +08:00
使用物理尺寸进行设置
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using AIStudio.Wpf.DiagramDesigner;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -33,13 +34,13 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
this.Reserve = reserve;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
[XmlAttribute("Left")]
|
||||
public double PhysicalLeft
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
[XmlAttribute("Top")]
|
||||
public double PhysicalTop
|
||||
{
|
||||
get; set;
|
||||
@@ -69,13 +70,15 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
[JsonProperty(PropertyName = "ItemWidth")]
|
||||
[XmlAttribute("ItemWidth")]
|
||||
public double PhysicalItemWidth
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
[JsonProperty(PropertyName = "ItemHeight")]
|
||||
[XmlAttribute("ItemHeight")]
|
||||
public double PhysicalItemHeight
|
||||
{
|
||||
get; set;
|
||||
|
||||
Reference in New Issue
Block a user