mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-05 16:56:34 +08:00
mind序列化完善中
This commit is contained in:
@@ -59,7 +59,7 @@ namespace AIStudio.Wpf.Mind.ViewModels
|
||||
AddChildCommand = (Root as IMindDiagramViewModel)?.AddChildCommand;
|
||||
AddParentCommand = (Root as IMindDiagramViewModel)?.AddParentCommand;
|
||||
AddPeerCommand = (Root as IMindDiagramViewModel)?.AddPeerCommand;
|
||||
DeleteSelfCommand = (Root as IMindDiagramViewModel)?.DeleteSelfCommand;
|
||||
DeleteCommand = (Root as IMindDiagramViewModel)?.DeleteCommand;
|
||||
MoveForwardCommand = (Root as IMindDiagramViewModel)?.MoveForwardCommand;
|
||||
MoveBackCommand = (Root as IMindDiagramViewModel)?.MoveBackCommand;
|
||||
BuildMenuOptions();
|
||||
@@ -97,7 +97,6 @@ namespace AIStudio.Wpf.Mind.ViewModels
|
||||
mindNodeModel.Spacing = Spacing;
|
||||
mindNodeModel.Offset = Offset;
|
||||
mindNodeModel.IsExpanded = IsExpanded;
|
||||
|
||||
return mindNodeModel;
|
||||
}
|
||||
|
||||
@@ -309,7 +308,7 @@ namespace AIStudio.Wpf.Mind.ViewModels
|
||||
get; private set;
|
||||
}
|
||||
|
||||
public SimpleCommand DeleteSelfCommand
|
||||
public SimpleCommand DeleteCommand
|
||||
{
|
||||
get; private set;
|
||||
}
|
||||
@@ -356,7 +355,7 @@ namespace AIStudio.Wpf.Mind.ViewModels
|
||||
menuOptions.Add(menuItem);
|
||||
menuItem = new CinchMenuItem();
|
||||
menuItem.Text = "删除";
|
||||
menuItem.Command = DeleteSelfCommand;
|
||||
menuItem.Command = DeleteCommand;
|
||||
menuItem.CommandParameter = this;
|
||||
menuOptions.Add(menuItem);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user