mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-03 23:56:37 +08:00
分组,取消分组 ReDo UnDo 整理
This commit is contained in:
@@ -8,6 +8,7 @@ using System.Linq;
|
||||
using System.Security.Policy;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using AIStudio.Wpf.DiagramDesigner;
|
||||
@@ -239,6 +240,7 @@ namespace AIStudio.Wpf.Mind.ViewModels
|
||||
}
|
||||
|
||||
private bool _isExpanded = true;
|
||||
[CanDo]
|
||||
public bool IsExpanded
|
||||
{
|
||||
get
|
||||
@@ -322,6 +324,7 @@ namespace AIStudio.Wpf.Mind.ViewModels
|
||||
|
||||
#region 附加信息属性
|
||||
private LinkInfo _linkInfo;
|
||||
[CanDo]
|
||||
public LinkInfo LinkInfo
|
||||
{
|
||||
get
|
||||
@@ -335,6 +338,7 @@ namespace AIStudio.Wpf.Mind.ViewModels
|
||||
}
|
||||
|
||||
private ImageInfo _imageInfo;
|
||||
[CanDo]
|
||||
public ImageInfo ImageInfo
|
||||
{
|
||||
get
|
||||
@@ -348,6 +352,7 @@ namespace AIStudio.Wpf.Mind.ViewModels
|
||||
}
|
||||
|
||||
private string _remark;
|
||||
[CanDo]
|
||||
[Browsable(true)]
|
||||
public string Remark
|
||||
{
|
||||
@@ -362,6 +367,7 @@ namespace AIStudio.Wpf.Mind.ViewModels
|
||||
}
|
||||
|
||||
private double? _priority;
|
||||
[CanDo]
|
||||
public double? Priority
|
||||
{
|
||||
get
|
||||
@@ -375,6 +381,7 @@ namespace AIStudio.Wpf.Mind.ViewModels
|
||||
}
|
||||
|
||||
private double? _rate;
|
||||
[CanDo]
|
||||
public double? Rate
|
||||
{
|
||||
get
|
||||
@@ -388,6 +395,7 @@ namespace AIStudio.Wpf.Mind.ViewModels
|
||||
}
|
||||
|
||||
private ObservableCollection<string> _tags;
|
||||
[CanDo]
|
||||
public ObservableCollection<string> Tags
|
||||
{
|
||||
get
|
||||
@@ -568,6 +576,7 @@ namespace AIStudio.Wpf.Mind.ViewModels
|
||||
{
|
||||
if (GetLevel0Node()?.LayoutUpdating == true) return;
|
||||
|
||||
Interlocked.Increment(ref Root.DoCommandManager.BeginDo);
|
||||
switch (e.PropertyName)
|
||||
{
|
||||
case nameof(Left):
|
||||
@@ -591,6 +600,7 @@ namespace AIStudio.Wpf.Mind.ViewModels
|
||||
case nameof(ItemWidth):
|
||||
case nameof(ItemHeight):
|
||||
{
|
||||
|
||||
UpdatedLayout();
|
||||
break;
|
||||
}
|
||||
@@ -608,6 +618,7 @@ namespace AIStudio.Wpf.Mind.ViewModels
|
||||
break;
|
||||
}
|
||||
}
|
||||
Interlocked.Decrement(ref Root.DoCommandManager.BeginDo);
|
||||
}
|
||||
|
||||
protected override void FontViewModel_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user