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


C# DynamicLayout.AddSeparateRow方法代码示例

本文整理汇总了C#中Eto.Forms.DynamicLayout.AddSeparateRow方法的典型用法代码示例。如果您正苦于以下问题:C# DynamicLayout.AddSeparateRow方法的具体用法?C# DynamicLayout.AddSeparateRow怎么用?C# DynamicLayout.AddSeparateRow使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Eto.Forms.DynamicLayout的用法示例。


在下文中一共展示了DynamicLayout.AddSeparateRow方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: PrintDialogSection

		public PrintDialogSection()
		{
			this.DataContext = settings;

			var layout = new DynamicLayout { DefaultSpacing = new Size(5, 5), Padding = new Padding(10) };

			layout.BeginVertical();
			layout.BeginHorizontal();
			layout.Add(null);
			layout.BeginVertical(Padding.Empty);
			layout.AddSeparateRow(null, ShowPrintDialog(), null);
			layout.AddSeparateRow(null, PrintFromGraphicsWithDialog(), null);
			layout.AddSeparateRow(null, PrintFromGraphics(), null);
			layout.EndBeginVertical();
			layout.Add(PrintDialogOptions());
			layout.Add(null);
			layout.EndVertical();
			layout.Add(null);
			layout.EndHorizontal();
			layout.EndVertical();
			layout.AddSeparateRow(null, PageRange(), Settings(), null);

			layout.Add(null);
			Content = layout;
		}
开发者ID:GilbertoBotaro,项目名称:Eto,代码行数:25,代码来源:PrintDialogSection.cs

示例2: TreeViewSection

		public TreeViewSection()
		{
			var layout = new DynamicLayout();
			
			layout.BeginHorizontal();
			layout.Add(new Label());
			layout.BeginVertical();
			layout.BeginHorizontal();
			layout.Add(null);
			layout.Add(allowExpanding = new CheckBox{ Text = "Allow Expanding", Checked = true });
			layout.Add(allowCollapsing = new CheckBox{ Text = "Allow Collapsing", Checked = true });
			layout.Add(RefreshButton());
			layout.Add(null);
			layout.EndHorizontal();
			layout.EndVertical();
			layout.EndHorizontal();

			treeView = ImagesAndMenu();

			layout.AddRow(new Label{ Text = "Simple" }, Default());
			layout.BeginHorizontal();
			layout.Add(new Panel());
			layout.BeginVertical();
			layout.AddSeparateRow(InsertButton(), AddChildButton(), RemoveButton(), ExpandButton(), CollapseButton(), null);
			layout.AddSeparateRow(LabelEditCheck(), EnabledCheck(), null);
			layout.EndVertical();
			layout.EndHorizontal();
			layout.AddRow(new Label{ Text = "With Images\n&& Context Menu" }, treeView);
			layout.AddRow(new Panel(), HoverNodeLabel());

			layout.Add(null, false, true);

			Content = layout;
		}
开发者ID:alexandrebaker,项目名称:Eto,代码行数:34,代码来源:TreeViewSection.cs

示例3: Init

		void Init()
		{
			_comboBoxServices = new ComboBox();
			_comboBoxServices.SelectedIndexChanged += _comboBoxServices_SelectedIndexChanged;

			_textAreaInfo = new TextArea{Size=new Size(-1,200)};
			_textAreaInfo.Enabled = false;
			_textAreaResult = new TextArea();
			_textAreaResult.Text = "If you wanna call one service, you can do like this:\n" +
									"dynamic ToBase64 = PluginServiceProvider.GetService(\"ToBase64\");\n" +
									"var result = ToBase64(new PluginParameter(\"str\", \"Test\"));\n" +
									"//result=\"VGVzdA==\"";
			_textAreaResult.Enabled = false;

			var layout = new DynamicLayout {Padding = new Padding(10, 10)};

			layout.AddSeparateRow(
				new Label {Text = "The Registered Services", VerticalAlign = VerticalAlign.Middle},
				_comboBoxServices);
			layout.AddSeparateRow(_textAreaInfo);
			layout.AddSeparateRow(_textAreaResult);

			Content = layout;
			Title = "Developer Tool";
			Size = new Size(400, 400);
		}
开发者ID:kevins1022,项目名称:Altman,代码行数:26,代码来源:DeveloperTool.cs

示例4: BrushSection

		public BrushSection()
		{
			var layout = new DynamicLayout();
			brush = solidBrush = Brushes.LightSkyBlue;
			gradientBrush = new LinearGradientBrush(Colors.AliceBlue, Colors.Black, new PointF(0, 0), new PointF(100f, 100f));
			//gradientBrush = new LinearGradientBrush (new RectangleF (0, 0, 50, 50), Colors.AliceBlue, Colors.Black, 10);
			gradientBrush.Wrap = GradientWrapMode.Repeat;
			textureBrush = new TextureBrush(image, 0.5f);
			brush = textureBrush;

			ScaleX = 100f;
			ScaleY = 100f;

			drawable = new Drawable { Size = new Size(300, 200) };

			drawable.Paint += (sender, pe) => Draw(pe.Graphics);

			layout.AddSeparateRow(null, BrushControl(), UseBackgroundColorControl(), null);
			if (Platform.Supports<NumericUpDown>())
			{
				matrixRow = layout.AddSeparateRow(null, new Label { Text = "Rot" }, RotationControl(), new Label { Text = "Sx" }, ScaleXControl(), new Label { Text = "Sy" }, ScaleYControl(), new Label { Text = "Ox" }, OffsetXControl(), new Label { Text = "Oy" }, OffsetYControl(), null);
				matrixRow.Table.Visible = false;
			}
			gradientRow = layout.AddSeparateRow(null, GradientWrapControl(), null);
			gradientRow.Table.Visible = false;
			layout.AddSeparateRow(null, drawable, null);
			layout.Add(null);

			this.Content = layout;
		}
开发者ID:gene-l-thomas,项目名称:Eto,代码行数:30,代码来源:BrushSection.cs

示例5: PenSection

		public PenSection()
		{
			PenThickness = 4;

			var layout = new DynamicLayout();

			layout.AddSeparateRow(null, PenJoinControl(), PenCapControl(), DashStyleControl(), null);
			layout.AddSeparateRow(null, PenThicknessControl(), null);
			layout.AddSeparateRow(GetDrawable());

			Content = layout;
		}
开发者ID:JohnACarruthers,项目名称:Eto,代码行数:12,代码来源:PenSection.cs

示例6: Default

		Control Default()
		{
			var control = new ComboBox();
			LogEvents(control);

			var layout = new DynamicLayout { DefaultSpacing = new Size(5, 5) };
			layout.Add(TableLayout.AutoSized(control));
			layout.AddSeparateRow(AddRowsButton(control), RemoveRowsButton(control), ClearButton(control), SetSelected(control), ClearSelected(control), null);
			layout.AddSeparateRow(GetEnabled(control), GetReadOnly(control), AutoComplete(control), ShowComboText(control), SetComboText(control), null);

			return layout;
		}
开发者ID:mhusen,项目名称:Eto,代码行数:12,代码来源:ComboBoxSection.cs

示例7: WindowsSection

		public WindowsSection()
		{
			var layout = new DynamicLayout();

			layout.AddSeparateRow(null, Resizable(), Minimizable(), Maximizable(), ShowInTaskBar(), TopMost(), null);
			layout.AddSeparateRow(null, new Label { Text = "Window Style" }, WindowStyle(), null);
			layout.AddSeparateRow(null, new Label { Text = "Window State" }, WindowState(), null);
			layout.AddSeparateRow(null, CreateChildWindowButton(), null);
			layout.AddSeparateRow(null, BringToFrontButton(), null);
			layout.Add(null);

			Content = layout;
		}
开发者ID:JohnACarruthers,项目名称:Eto,代码行数:13,代码来源:WindowsSection.cs

示例8: PenSection

		public PenSection()
		{
			PenThickness = 4;

			var layout = new DynamicLayout { DefaultSpacing = new Size(5, 5), Padding = new Padding(10) };

			layout.AddSeparateRow(null, PenJoinControl(), PenCapControl(), DashStyleControl(), null);
			if (Platform.Supports<NumericUpDown>())
				layout.AddSeparateRow(null, PenThicknessControl(), null);
			layout.AddCentered(GetDrawable());

			Content = layout;
		}
开发者ID:mhusen,项目名称:Eto,代码行数:13,代码来源:PenSection.cs

示例9: MousePositionSection

		public MousePositionSection ()
		{
			var layout = new DynamicLayout ();

			layout.AddSeparateRow (null, new Label { Text = "Mouse Position (in screen co-ordinates)"}, MousePositionLabel (), null);
			layout.AddSeparateRow (null, new Label { Text = "PointFromScreen" }, PointFromScreen (), null);
			layout.AddSeparateRow (null, new Label { Text = "PointToScreen" }, PointToScreen (), null);
			layout.AddSeparateRow (null, new Label { Text = "Buttons" }, Buttons (), null);
			layout.Add (null);

			SetLabels ();

			Content = layout;
		}
开发者ID:Exe0,项目名称:Eto,代码行数:14,代码来源:MousePositionSection.cs

示例10: LabelSection

		public LabelSection()
		{
			var layout = new DynamicLayout();

			layout.Add(NormalLabel());
			layout.Add(FontLabel());
			layout.Add(NoWrapLabel());
			layout.AddSeparateRow(null, UnderlineLabel(), HotkeyLabel(), HotkeyUnderlineLabel(), null);
			layout.AddSeparateRow(null, ColorLabel(), BackgroundColorLabel(), null);
			layout.Add(CenterLabel());
			layout.Add(RightLabel());
			layout.Add(MiddleLabel(), yscale: true);
			layout.Add(BottomLabel(), yscale: true);

			Content = layout;
		}
开发者ID:gene-l-thomas,项目名称:Eto,代码行数:16,代码来源:LabelSection.cs

示例11: JabbRAuthDialog

        public JabbRAuthDialog(string serverAddress, string appName)
        {
            this.ServerAddress = serverAddress;
            this.AppName = appName;
            this.DisplayMode = DialogDisplayMode.Attached;
            
            this.ClientSize = defaultSize;
            this.Resizable = true;
            this.Title = "JabbR Login";
            
            var baseDir = Path.Combine(EtoEnvironment.GetFolderPath(EtoSpecialFolder.ApplicationResources), "Styles", "default");
            webserver = new HttpServer(baseDir);
            LocalhostTokenUrl = new Uri(webserver.Url, "Authorize");
            webserver.StaticContent.Add("/", AuthHtml(true));
            webserver.StaticContent.Add("/Authorize", GetUserIDHtml());
            webserver.ReceivedRequest += HandleReceivedRequest;
            
            
            web = new WebView();
            web.DocumentLoaded += HandleDocumentLoaded;
            web.Url = webserver.Url;
            
            var layout = new DynamicLayout();
            layout.Add(web, yscale: true);
            layout.AddSeparateRow(Padding.Empty).Add(null, this.CancelButton());

            Content = layout;
        }
开发者ID:modulexcite,项目名称:JabbR.Desktop,代码行数:28,代码来源:JabbRAuthDialog.cs

示例12: Init

        void Init()
        {
	        _tbxShellData = new TextArea {Size = new Size(-1, 200)};
            _tbxMsg = new TextBox();
	        _btnShowMsgInStatus = new Button {Text = "Show Msg In Status", Width = 150};
            _btnShowMsgInStatus.Click+=btn_showMsgInStatus_Click;
			_btnShowMessageBox = new Button { Text = "Show Msg In Message", Width = 150 };
            _btnShowMessageBox.Click+=btn_showMessageBox_Click;
			_btnCreateNewTabPage = new Button { Text = "Create New TabPage", Width = 150 };
            _btnCreateNewTabPage.Click+=btn_createNewTabPage_Click;

			// Test
	        var btnTest = new Button {Text = "Test", Width = 150};
			btnTest.Click += btnTest_Click;

	        var layout = new DynamicLayout {Padding = new Padding(10, 10), Size = new Size(10, 10)};
            layout.AddRow(new Label() { Text = "ShellData"});
			layout.AddRow(_tbxShellData);
			layout.AddSeparateRow(new Label() { Text = "Msg", VerticalAlign = VerticalAlign.Middle }, _tbxMsg, null);
	        layout.AddAutoSized(_btnShowMsgInStatus);
	        layout.AddAutoSized(_btnShowMessageBox);
	        layout.AddAutoSized(_btnCreateNewTabPage);
			layout.AddAutoSized(btnTest);
			layout.Add(null);

            this.Content = layout;
        }
开发者ID:kevins1022,项目名称:Altman,代码行数:27,代码来源:DoNetPluginTest.cs

示例13: MousePositionSection

		public MousePositionSection()
		{
			var layout = new DynamicLayout { DefaultSpacing = new Size(5, 5) };

			layout.Add(null);
			layout.AddSeparateRow(null, "Mouse Position (in screen co-ordinates)", MousePositionLabel(), null);
			layout.AddSeparateRow(null, "PointFromScreen", PointFromScreen(), null);
			layout.AddSeparateRow(null, "PointToScreen", PointToScreen(), null);
			layout.AddSeparateRow(null, "Mouse.Buttons", Buttons(), null);
			layout.AddSeparateRow(null, "Keyboard.ModifierKeys", Modifiers(), null);
			layout.Add(null);

			SetLabels();

			Content = layout;
		}
开发者ID:mhusen,项目名称:Eto,代码行数:16,代码来源:MousePositionSection.cs

示例14: LabelSection

		public LabelSection()
		{
			var layout = new DynamicLayout { DefaultSpacing = new Size(5, 5), Padding = new Padding(10) };

			layout.Add(NormalLabel());
			layout.Add(FontLabel());
			layout.Add(WrapLabel());
			layout.AddSeparateRow(null, UnderlineLabel(), HotkeyLabel(), HotkeyUnderlineLabel(), null);
			layout.AddSeparateRow(null, ColorLabel(), BackgroundColorLabel(), null);
			layout.Add(CenterLabel());
			layout.Add(RightLabel());
			layout.Add(MiddleLabel(), yscale: true);
			layout.Add(BottomLabel(), yscale: true);

			Content = layout;
		}
开发者ID:mhusen,项目名称:Eto,代码行数:16,代码来源:LabelSection.cs

示例15: WindowsSection

		public WindowsSection()
		{
			var layout = new DynamicLayout { DefaultSpacing = new Size(5, 5), Padding = new Padding(10) };

			layout.AddSeparateRow(null, Resizable(), Minimizable(), Maximizable(), CreateCancelClose(), null);
			layout.AddSeparateRow(null, ShowInTaskBar(), TopMost(), null);
			layout.AddSeparateRow(null, "Type", CreateTypeControls(), null);
			layout.AddSeparateRow(null, "Window Style", WindowStyle(), null);
			layout.AddSeparateRow(null, "Window State", WindowState(), null);
			layout.AddSeparateRow(null, CreateInitialLocationControls(), null);
			layout.AddSeparateRow(null, CreateClientSizeControls(), null);
			layout.AddSeparateRow(null, CreateMinimumSizeControls(), null);
			layout.AddSeparateRow(null, CreateChildWindowButton(), null);
			layout.AddSeparateRow(null, BringToFrontButton(), null);
			layout.Add(null);

			Content = layout;
		}
开发者ID:GilbertoBotaro,项目名称:Eto,代码行数:18,代码来源:WindowsSection.cs


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