mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-05-02 05:51:28 +08:00
添加附加信息
This commit is contained in:
@@ -45,11 +45,6 @@ namespace AIStudio.Wpf.DiagramDesigner
|
|||||||
this.ClearConnectors();
|
this.ClearConnectors();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void ExecuteEditCommand(object param)
|
|
||||||
{
|
|
||||||
if (IsReadOnly == true) return;
|
|
||||||
}
|
|
||||||
|
|
||||||
private string _watermark = "请输入文本";
|
private string _watermark = "请输入文本";
|
||||||
public string Watermark
|
public string Watermark
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -208,6 +208,86 @@ namespace AIStudio.Wpf.Mind.ViewModels
|
|||||||
private bool _isRightLayout = true;
|
private bool _isRightLayout = true;
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region 附加信息属性
|
||||||
|
private LinkInfo _linkInfo;
|
||||||
|
public LinkInfo LinkInfo
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _linkInfo;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _linkInfo, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private ImageInfo _imageInfo;
|
||||||
|
public ImageInfo ImageInfo
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _imageInfo;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _imageInfo, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _remark;
|
||||||
|
public string Remark
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _remark;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _remark, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _grade;
|
||||||
|
public string Grade
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _grade;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _grade, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private double _completionRate;
|
||||||
|
public double CompletionRate
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _completionRate;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _completionRate, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private List<string> _tags;
|
||||||
|
public List<string> Tags
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _tags;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _tags, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region 命令
|
#region 命令
|
||||||
public SimpleCommand AddParentCommand
|
public SimpleCommand AddParentCommand
|
||||||
{
|
{
|
||||||
@@ -704,4 +784,62 @@ namespace AIStudio.Wpf.Mind.ViewModels
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class LinkInfo : BindableBase
|
||||||
|
{
|
||||||
|
private string _url;
|
||||||
|
public string Url
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _url;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _url, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _text;
|
||||||
|
public string Text
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _text;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _text, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class ImageInfo : BindableBase
|
||||||
|
{
|
||||||
|
private string _url;
|
||||||
|
public string Url
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _url;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _url, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _text;
|
||||||
|
public string Text
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _text;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _text, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user