public override void Run() { var form = new Form(); var stackPanel = new StackPanel{ Dock = DockStyle.Fill }; form.Controls.Add(stackPanel) ; for(var i = 0; i < 50; i++) { var button = new ExButton(){ Text = Random.Name(), Image = Random.Image16x16() }; stackPanel.Controls.Add(button) ; var hyperlink = new ExHyperlink() { Text = Random.Name(), Image = Random.Image16x16() }; stackPanel.Controls.Add(hyperlink) ; } form.ShowDialog(); }
private void AddContainerToNavBar(StackPanel container, ExNavigationBar bar) { var panel = new ExNavigationPanel { Text = Caption, PanelImage = Glyph.GetMedium() }; bar.AddPanel(panel); panel.Controls.Add(container); }