public TextBlockDefinitionItemModel(TextBlockDefinitionItemModel t, IdeCollection <IdeBaseItem> source) : base(source)
 {
     _def = new BlockDefinition
     {
     };
     Name = t.Name;
 }
示例#2
0
 public TextBlockDefinitionItemModel(TextBlockDefinitionItemModel t, IdeCollection <IdeBaseItem> source) : base(source) // copy
 {
     _def            = new BlockDefinition();
     Asset           = new AssetController(AssetType.Font);
     Asset.CanRemove = true;
     Asset.Register(t._def.src);
     Asset.PropertyChanged += AssetUpdated;
     _def.text.font         = Asset.SelectedAsset.FullPath;
     Name = t.Name;
 }