整理一下项目文件

This commit is contained in:
艾竹
2022-10-28 22:45:39 +08:00
parent 334297b074
commit 513937c1d6
598 changed files with 684 additions and 544 deletions

View File

@@ -0,0 +1,59 @@
using AIStudio.Wpf.DiagramDesigner;
using System.Windows.Media;
namespace AIStudio.Wpf.DiagramDesigner
{
public class TextDesignerItemViewModel : DesignerItemViewModelBase
{
public TextDesignerItemViewModel(IDiagramViewModel parent, DesignerItemBase designer) : base(parent, designer)
{
}
public TextDesignerItemViewModel()
{
}
protected override void Init()
{
base.Init();
this.ItemWidth = 150;
this.ClearConnectors();
}
protected override void ExecuteEditCommand(object param)
{
if (IsReadOnly == true) return;
}
private string _watermark = "请输入文本";
public string Watermark
{
get
{
return _watermark;
}
set
{
SetProperty(ref _watermark, value);
}
}
//固定在DataTemplate中处理
private bool _showText;
public override bool ShowText
{
get
{
return false;
}
set
{
SetProperty(ref _showText, value);
}
}
}
}