コード例 #1
0
ファイル: RadCommandBar.cs プロジェクト: RichardHaggard/BDC
 protected override void CreateChildItems(RadElement parent)
 {
     base.CreateChildItems(parent);
     this.commandBarElement = this.CreateCommandBarElement();
     this.RootElement.Children.Add((RadElement)this.commandBarElement);
     this.ApplyOrientation(this.commandBarElement.Orientation);
     this.contextMenu              = new RadDropDownMenu();
     this.customizeMenuItem        = new RadMenuItem(LocalizationProvider <CommandBarLocalizationProvider> .CurrentProvider.GetLocalizedString("ContextMenuCustomizeText"));
     this.customizeMenuItem.Click += new EventHandler(this.customizeMenuItem_Click);
 }
コード例 #2
0
ファイル: RadCommandBar.cs プロジェクト: configare/hispeed
 protected override void CreateChildItems(RadElement parent)
 {
     base.CreateChildItems(parent);
     this.commandBarElement = new RadCommandBarElement();
     this.ApplyOrientation(commandBarElement.Orientation);
     this.RootElement.Children.Add(this.commandBarElement);
     this.AutoSize            = true;
     this.contextMenu         = new RadDropDownMenu();
     this.customizeMenuItem   = new RadMenuItem(CommandBarLocalizationProvider.CurrentProvider.GetLocalizedString(CommandBarStringId.ContextMenuCustomizeText));
     customizeMenuItem.Click += new EventHandler(customizeMenuItem_Click);
 }
コード例 #3
0
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.commandBar                     = new RadCommandBarElement();
     this.commandBar.Margin              = new Padding(0, 0, 0, -3);
     this.commandBar.AllowDrag           = false;
     this.commandBar.AllowDrop           = false;
     this.commandBar.DesignTimeAllowDrag = false;
     this.commandBar.DesignTimeAllowDrop = false;
     this.commandBarRowElement           = new CommandBarRowElement();
     this.commandBarRowElement.Margin    = new Padding(1, 0, 1, 0);
     this.commandBar.Rows.Add(this.CommandBarRowElement);
     this.CreateButtonsStripElementChildElements();
     this.CreateTextBoxStripElementChildElements();
     this.Children.Add((RadElement)this.commandBar);
     this.WireEvents();
 }