#Form1.cs
private void InitializeComponent()
{
this.mainFrameBarManager1.Bars.Add(this.bar1);
this.mainFrameBarManager1.Items.AddRange(new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem[] {
this.parentBarItem1,
this.barItem1,
this.barItem2
});
this.bar1.BarName = "MainMenu";
this.bar1.Caption = "MainMenu";
this.bar1.Items.AddRange(new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem[] {
this.parentBarItem1
});
this.bar1.BarStyle = ((Syncfusion.Windows.Forms.Tools.XPMenus.BarStyle)(((Syncfusion.Windows.Forms.Tools.XPMenus.BarStyle.AllowQuickCustomizing | Syncfusion.Windows.Forms.Tools.XPMenus.BarStyle.IsMainMenu)
| Syncfusion.Windows.Forms.Tools.XPMenus.BarStyle.Visible)));
this.bar1.Manager = this.mainFrameBarManager1;
this.parentBarItem1.Items.AddRange(new Syncfusion.Windows.Forms.Tools.XPMenus.BarItem[] {
this.barItem1,
this.barItem2});
this.parentBarItem1.Text = "File";
this.barItem1.Text = "New";
this.barItem2.Text = "Open";
}
|