标签:.sh UI menu turn show return tar dev down
dropDownButton1.DropDownControl= CreateDXPopupMenu();
private DXPopupMenu CreateDXPopupMenu()
{
DXPopupMenu menu = new DXPopupMenu();
menu.Items.Add(new DXMenuItem("Item", OnItemClick));
menu.Items.Add(new DXMenuCheckItem("CheckItem", false, null, OnItemClick));
DXSubMenuItem subMenu = new DXSubMenuItem("SubMenu");
subMenu.Items.Add(new DXMenuItem("SubItem", OnItemClick));
menu.Items.Add(subMenu);
return menu;
}
private void OnItemClick(object sender, EventArgs e)
{
DXMenuItem item = sender as DXMenuItem;
XtraMessageBox.Show(UserLookAndFeel.Default, "OK");
}
Dev控件类似于ComBox的DropDownControl用法
标签:.sh UI menu turn show return tar dev down
原文地址:http://www.cnblogs.com/mol1995/p/7637988.html