控制項右上角的小三角箭頭展開的工作清單即為智慧標籤,可快速設定常用屬性 (如 GridView 的分頁、排序)。

DesignerActionList 衍生類別,定義要顯示的動作項目。ControlDesigner.ActionLists 屬性,回傳包含自訂 ActionList 的 DesignerActionListCollection。public class SampleControlDesigner : ControlDesigner {
public override DesignerActionListCollection ActionLists {
get {
DesignerActionListCollection actionLists = new DesignerActionListCollection();
actionLists.Add(new CustomControlActionList(this));
return actionLists;
}
}
}
開發者在設計介面點選控制項即可看到自訂的智慧標籤,大幅提升設定效率。