当前位置: 首页>>代码示例>>C#>>正文


C# DynamicLayout.AddColumn方法代码示例

本文整理汇总了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();
        }
开发者ID:piedar,项目名称:Hushpuppy,代码行数:18,代码来源:BrowserWindow.cs

示例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);
        }
开发者ID:nagyist,项目名称:Notedown,代码行数:43,代码来源:About.cs

示例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;
        }
开发者ID:kevins1022,项目名称:Altman,代码行数:23,代码来源:FormWget.cs

示例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;
		}
开发者ID:alexandrebaker,项目名称:Eto,代码行数:37,代码来源:SplitterSection.cs

示例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;
        }
开发者ID:piedar,项目名称:Hushpuppy,代码行数:20,代码来源:BrowserWindow.cs


注:本文中的Eto.Forms.DynamicLayout.AddColumn方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。