Sic04/FrameworkLocal/UIClient/RecipeEditorLib/RecipeModel/Params/ComboxParam.cs

65 lines
1.3 KiB
C#
Raw Normal View History

using System.Collections.ObjectModel;
2022-09-19 09:16:33 +08:00
using RecipeEditorLib.DGExtension.CustomColumn;
namespace RecipeEditorLib.RecipeModel.Params
{
public class ComboxParam : ParamBaseWithGenericValue<string>
2022-09-19 09:16:33 +08:00
{
#region Constructors
2022-09-19 09:16:33 +08:00
public ComboxParam()
{
}
public ComboxParam(string initValue) : base(initValue)
2022-09-19 09:16:33 +08:00
{
}
#endregion
public ObservableCollection<ComboxColumn.Option> Options { get; set; }
2022-09-19 09:16:33 +08:00
private bool _isEditable;
public bool IsEditable
{
get
{
return _isEditable;
}
set
{
_isEditable = value;
this.NotifyOfPropertyChange(nameof(IsEditable));
2022-09-19 09:16:33 +08:00
}
}
private string foreground = "Black";
public string Foreground
{
get
{
return foreground;
}
set
{
foreground = value;
this.NotifyOfPropertyChange(nameof(Foreground));
2022-09-19 09:16:33 +08:00
}
}
public string LoopBackground
{
get
{
return "Transparent";
}
}
public bool IsLoopItem
{
get { return false; }
}
}
}