mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-05 16:56:34 +08:00
可以切换MindType
This commit is contained in:
@@ -14,26 +14,11 @@ namespace AIStudio.Wpf.Mind.Models
|
||||
}
|
||||
public MindNodeDesignerItem(MindNode item) : base(item)
|
||||
{
|
||||
NodeLevel = item.NodeLevel;
|
||||
MindType = item.MindType;
|
||||
Spacing = item.Spacing;
|
||||
Offset = item.Offset;
|
||||
IsExpanded = item.IsExpanded;
|
||||
}
|
||||
|
||||
|
||||
[XmlAttribute]
|
||||
public NodeLevel NodeLevel
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlAttribute]
|
||||
public MindType MindType
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[XmlIgnore]
|
||||
public Size Spacing
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Windows;
|
||||
using AIStudio.Wpf.DiagramDesigner;
|
||||
using AIStudio.Wpf.DiagramModels;
|
||||
using AIStudio.Wpf.DiagramModels.ViewModels;
|
||||
using AIStudio.Wpf.Mind;
|
||||
@@ -9,16 +10,6 @@ namespace AIStudio.Wpf.Flowchart.Models
|
||||
|
||||
public class MindNodeModel : DiagramNode
|
||||
{
|
||||
public NodeLevel NodeLevel
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public MindType MindType
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public Size Spacing
|
||||
{
|
||||
get; set;
|
||||
@@ -35,9 +26,9 @@ namespace AIStudio.Wpf.Flowchart.Models
|
||||
get; set;
|
||||
}
|
||||
|
||||
public override DiagramItemViewModel ToNodel()
|
||||
public override DiagramItemViewModel ToNodel(IDiagramViewModel diagramViewModel)
|
||||
{
|
||||
MindNode mindNode = new MindNode(NodeLevel, MindType);
|
||||
MindNode mindNode = new MindNode(diagramViewModel);
|
||||
|
||||
mindNode.Spacing = Spacing;
|
||||
mindNode.Offset = Offset;
|
||||
|
||||
Reference in New Issue
Block a user