Coolite Destop 动态生成菜单

Coolite.Ext.Web.MenuItem item = new Coolite.Ext.Web.MenuItem();
item.Text = "aa";
Coolite.Ext.Web.Menu bb = new Coolite.Ext.Web.Menu();
Coolite.Ext.Web.MenuItem subItem = new Coolite.Ext.Web.MenuItem();
subItem.Text = "bb";
subItem.Listeners.Click = new ComponentListener("javascript:window.open('Default.aspx','','')");
bb.Items.Add(subItem);
item.Menu.Add(bb);
desktop1.StartMenu.Items.Add(item);

你可能感兴趣的:(Stop)