mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-03 00:00:57 +08:00
49 lines
1.1 KiB
C#
49 lines
1.1 KiB
C#
using AIStudio.Wpf.DiagramDesigner.Additionals.Models;
|
|
using AIStudio.Wpf.DiagramDesigner;
|
|
|
|
namespace AIStudio.Wpf.DiagramDesigner.Additionals.Extensions.ViewModels
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|