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");
}