2021-07-29 13:55:18 +08:00
|
|
|
|
using AIStudio.Wpf.BaseDiagram.Models;
|
|
|
|
|
|
using Util.DiagramDesigner;
|
2021-07-23 09:42:22 +08:00
|
|
|
|
|
2021-07-29 13:55:18 +08:00
|
|
|
|
namespace AIStudio.Wpf.BaseDiagram.Extensions.ViewModels
|
2021-07-23 09:42:22 +08:00
|
|
|
|
{
|
|
|
|
|
|
public class OutLineTextDesignerItemData : TitleBindableBase
|
|
|
|
|
|
{
|
|
|
|
|
|
public OutLineTextDesignerItemData()
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
public OutLineTextDesignerItemData(OutLineTextDesignerItemViewModel item)
|
|
|
|
|
|
{
|
|
|
|
|
|
this.Title = "矢量文本";
|
|
|
|
|
|
this.Text = item.Text;
|
|
|
|
|
|
this.FontViewModel = CopyHelper.Mapper<FontViewModel, IFontViewModel>(item.FontViewModel);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private IFontViewModel _fontViewModel;
|
|
|
|
|
|
public IFontViewModel FontViewModel
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
return _fontViewModel;
|
|
|
|
|
|
}
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
SetProperty(ref _fontViewModel, value);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private string _text;
|
|
|
|
|
|
public string Text
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
return _text;
|
|
|
|
|
|
}
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
SetProperty(ref _text, value);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|