本文整理汇总了C#中Eto.Forms.DynamicLayout.AddColumn方法的典型用法代码示例。如果您正苦于以下问题:C# DynamicLayout.AddColumn方法的具体用法?C# DynamicLayout.AddColumn怎么用?C# DynamicLayout.AddColumn使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Eto.Forms.DynamicLayout
的用法示例。
在下文中一共展示了DynamicLayout.AddColumn方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BrowserWindow
public BrowserWindow()
{
this.Title = "Hushpuppy";
this.Size = new Size(1280, 800);
this.Menu = new MenuBar();
ButtonMenuItem fileMenu = Menu.Items.GetSubmenu("&File");
fileMenu.Items.AddRange(new Command[] { new NewTabCommand(this, _homePage), new CloseTabCommand(this), new NewWindowCommand(), });
BrowserToolbar = new BrowserToolbar();
DynamicLayout layout = new DynamicLayout();
layout.AddColumn(BrowserToolbar, _tabControl);
this.Content = layout;
new NavigateCommand(this, _homePage).Execute();
}
示例2: About
public About()
{
/* dialog attributes */
this.Text = "About Notedown";
this.ClientSize = new Size(300, 280);
this.Resizable = false;
/* dialog controls */
var imageView = new ImageView();
imageView.Image = Icon.FromResource("Icon.ico");
imageView.Size = new Size(128, 128);
var labelTitle = new Label();
labelTitle.Text = "Notedown";
labelTitle.Size = new Size(240, 24);
labelTitle.Font = new Font(FontFamily.Sans, 16);
labelTitle.HorizontalAlign = HorizontalAlign.Center;
var version = Assembly.GetExecutingAssembly().GetName().Version;
var labelVersion = new Label();
labelVersion.Text = string.Format("Version {0}", version);
labelVersion.HorizontalAlign = HorizontalAlign.Center;
var labelCopyright = new Label();
labelCopyright.Text = "Copyright by Andre Straubmeier";
labelCopyright.HorizontalAlign = HorizontalAlign.Center;
var button = new Button();
button.Text = "Close";
button.Size = new Size(90, 26);
button.Click += delegate
{
Close();
};
/* dialog layout */
var layout = new DynamicLayout(this);
layout.AddColumn(imageView, labelTitle, labelVersion, labelCopyright);
layout.AddCentered(button);
}
示例3: Init
void Init()
{
textBox_url = new TextBox();
textBox_url.TextChanged+=textBox_url_TextChanged;
textBox_url.Text = "http://";
textBox_save = new TextBox();
textBox_save.Text = _saveDir;
button_wget = new Button
{
Text = "Wget"
};
button_wget.Click+=button_wget_Click;
var layout = new DynamicLayout {Padding = new Padding(20, 10), Spacing = new Size(5, 5)};
var layout_left = new DynamicLayout();
layout_left.AddColumn(textBox_url, textBox_save);
layout.AddRow(layout_left,button_wget);
Content = layout;
}
示例4: Test2
static Form Test2(bool setSize)
{
var leftPane = new DynamicLayout { Padding = Padding.Empty, DefaultPadding = Padding.Empty };
leftPane.AddColumn(new TreeGridView());
var rightTop = new DynamicLayout();
rightTop.AddColumn(ComboWithItems(), new Panel());
var rightBottom = new DynamicLayout();
rightBottom.AddRow(new ComboBox(), ComboWithItems(), new Button(), new CheckBox(), null);
var rightPane = new Splitter
{
Orientation = SplitterOrientation.Vertical,
FixedPanel = SplitterFixedPanel.Panel2,
Panel1 = rightTop,
Panel2 = rightBottom,
Position = 200,
};
var form = new Form
{
Padding = new Padding(5),
Content = new Splitter
{
Orientation = SplitterOrientation.Horizontal,
FixedPanel = SplitterFixedPanel.Panel1,
BackgroundColor = Colors.Gray,
Position = 200,
Panel1 = leftPane,
Panel2 = rightPane
}
};
if (setSize)
form.Size = new Size(600, 400);
return form;
}
示例5: BrowserToolbar
public BrowserToolbar()
{
_urlBox.KeyDown +=
(Object sender, KeyEventArgs e) =>
{
if (e.Key == Keys.Enter)
{
TextBox urlBox = (TextBox)sender;
BrowserWindow browser = urlBox.FindParent<BrowserWindow>();
UriBuilder builder = new UriBuilder(urlBox.Text);
new NavigateCommand(browser, builder.Uri).Execute();
}
};
DynamicLayout layout = new DynamicLayout();
layout.AddColumn(_urlBox);
this.Content = layout;
}