mind多个根节点的时候,切换模式的修复

This commit is contained in:
艾竹
2023-04-05 20:35:10 +08:00
parent fccac1da23
commit 5935a58541
10 changed files with 136 additions and 149 deletions

View File

@@ -77,6 +77,7 @@ namespace AIStudio.Wpf.Mind.ViewModels
EnabledForConnection = false;
AlwayForResized = true;
CustomText = true;
IsInnerConnector = true;
AddChildCommand = (Root as IMindDiagramViewModel)?.AddChildCommand;
AddParentCommand = (Root as IMindDiagramViewModel)?.AddParentCommand;
@@ -100,8 +101,7 @@ namespace AIStudio.Wpf.Mind.ViewModels
var layout = TypeHelper.GetType(this.MindType.ToString() + "Layout");
MindLayout = layout != null ? (System.Activator.CreateInstance(layout) as IMindLayout) : new MindLayout();
this.PropertyChanged -= this.Item_PropertyChanged;
IsInnerConnector = true;
this.PropertyChanged -= this.Item_PropertyChanged;
MindLayout.Appearance(this, MindTheme, initAppearance);
this.PropertyChanged += this.Item_PropertyChanged;
}
@@ -348,6 +348,7 @@ namespace AIStudio.Wpf.Mind.ViewModels
}
private string _remark;
[Browsable(true)]
public string Remark
{
get