PropertyGrid可以將Objects的屬性條列式秀出來 and 輕易修改
網路上的教學文, 可以用StringConverter來做出comboBox
讓使用者直接從ComboBox上選擇值, 填入該屬性
我想請問一下, 現在想讓ComboBox裡面的值, 是程式執行中動態產生
但這個StringConverter, 使用方式蠻特殊, 在class裡如下:
public class A
{
public string B = "";
[Editor(typeof(StringConverter), ...] <===============
public string B
{
get { return B; }
set { B = value; }
}
}
我不知道他是什麼階段建立的 @@, 不知道怎麼Assign動態值給它
而且我想把這個ComboBox換成DropDownList Type, 也找不到方法...
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.168.20.55
※ 編輯: xanlich 來自: 118.168.20.55 (01/19 16:17)