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


C# DynamicLayout.EndBeginVertical方法代码示例

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


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

示例1: JabbRServerEdit

 public JabbRServerEdit(JabbRServer server, DynamicLayout layout)
 {
     this.server = server;
     layout.AddRow(new Label { Text = "Address" }, EditAddress());
     layout.EndBeginVertical(yscale: true);
     layout.AddRow(UseSocialLogin());
     layout.Add(authSection = new Panel {  }, yscale: true);
     layout.EndBeginVertical();
     loginSection = LoginSection();
     socialSection = SocialSection();
     
     authSection.DataContextChanged += (sender, e) => SetVisibility();
     SetVisibility();
 }
开发者ID:modulexcite,项目名称:JabbR.Desktop,代码行数:14,代码来源:JabbRServerEdit.cs

示例2: JabbRServerEdit

 public JabbRServerEdit(JabbRServer server, DynamicLayout layout)
 {
     this.server = server;
     layout.AddRow(new Label { Text = "Address" }, EditAddress());
     layout.EndBeginVertical();
     layout.AddRow(UseSocialLogin());
     layout.Add(authSection = new Panel { MinimumSize = new Size(0, 100) });
     layout.EndBeginVertical();
     LoginSection();
     SocialSection();
     
     authSection.DataContextChanged += (sender, e) => {
         SetVisibility();
     };
 }
开发者ID:nerdfury,项目名称:JabbR.Desktop,代码行数:15,代码来源:JabbRServerEdit.cs

示例3: ServerDialog

		public ServerDialog (Server server, bool isNew, bool allowConnect)
		{
			this.isNew = isNew;
			this.allowConnect = allowConnect && !isNew;
			this.Server = server;
			this.Title = "Add Server";
			this.MinimumSize = new Size (300, 0);
			this.DataContext = server;
			
			var layout = new DynamicLayout (this);
			
			layout.BeginVertical ();
			
			layout.AddRow (new Label { Text = "Server Name"}, ServerName ());
			
			// generate server-specific edit controls
			server.GenerateEditControls (layout, isNew);
			
			layout.AddRow (null, AutoConnectButton());
			
			layout.EndBeginVertical ();

			layout.AddRow (Connect (), Disconnect (), null, cancelButton = this.CancelButton (), this.OkButton ("Save", () => SaveData()));
			
			layout.EndVertical ();
			
			SetVisibility ();
		}
开发者ID:neiz,项目名称:JabbR.Eto,代码行数:28,代码来源:ServerDialog.cs

示例4: 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

示例5: MessageBoxSection

		public MessageBoxSection()
		{
			MessageBoxText = "Some message";
			MessageBoxCaption = "Some caption";
			AttachToParent = true;

			var layout = new DynamicLayout();

			layout.AddSeparateRow(null, new Label { Text = "Caption" }, CaptionBox(), null);
			layout.AddSeparateRow(null, new Label { Text = "Text" }, TitleBox(), null);

			layout.BeginVertical(Padding.Empty);

			layout.BeginHorizontal();
			layout.Add(null);
			layout.Add(new Label { Text = "Type", VerticalAlign = VerticalAlign.Middle, HorizontalAlign = HorizontalAlign.Right });
			layout.Add(MessageBoxTypeCombo());
			layout.Add(AttachToParentCheckBox());
			layout.Add(null);
			layout.EndHorizontal();

			layout.EndBeginVertical();
			layout.BeginHorizontal();
			layout.Add(null);
			layout.Add(new Label { Text = "Buttons", VerticalAlign = VerticalAlign.Middle, HorizontalAlign = HorizontalAlign.Right });
			layout.Add(MessageBoxButtonsCombo());
			layout.Add(new Label { Text = "Default Button", VerticalAlign = VerticalAlign.Middle, HorizontalAlign = HorizontalAlign.Right });
			layout.Add(MessageBoxDefaultButtonCombo());
			layout.Add(null);
			layout.EndHorizontal();

			layout.EndVertical();

			layout.AddSeparateRow(null, ShowDialogButton(), null);
			layout.Add(null);

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

示例6: MessageBoxSection

		public MessageBoxSection()
		{
			MessageBoxText = "Some message";
			MessageBoxCaption = "Some caption";
			AttachToParent = true;

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

			layout.AddSeparateRow(null, new Label { Text = "Caption" }, CaptionBox(), null);
			layout.AddSeparateRow(null, new Label { Text = "Text" }, TitleBox(), null);

			layout.BeginVertical();

			layout.BeginHorizontal();
			layout.Add(null);
			layout.Add(new Label { Text = "Type", VerticalAlignment = VerticalAlignment.Center, TextAlignment = TextAlignment.Right });
			layout.Add(MessageBoxTypeCombo());
			layout.Add(AttachToParentCheckBox());
			layout.Add(null);
			layout.EndHorizontal();

			layout.EndBeginVertical();
			layout.BeginHorizontal();
			layout.Add(null);
			layout.Add(new Label { Text = "Buttons", VerticalAlignment = VerticalAlignment.Center, TextAlignment = TextAlignment.Right });
			layout.Add(MessageBoxButtonsCombo());
			layout.Add(new Label { Text = "Default Button", VerticalAlignment = VerticalAlignment.Center, TextAlignment = TextAlignment.Right });
			layout.Add(MessageBoxDefaultButtonCombo());
			layout.Add(null);
			layout.EndHorizontal();

			layout.EndVertical();

			layout.AddSeparateRow(null, ShowDialogButton(), null);
			layout.Add(null);

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

示例7: LoadUrl

		Control LoadUrl ()
		{
			var control = new Button{
				Text = "Load Url"
			};
			control.Click += delegate {
				var dialog = new Dialog();
#if DESKTOP
				dialog.MinimumSize = new Size(300, 0);
#endif
				var layout = new DynamicLayout(dialog);
				var textBox = new TextBox { Text = "http://google.com" };
				var goButton = new Button { Text = "Go" };
				dialog.DefaultButton = goButton;
				goButton.Click += (sender, e) => {
					dialog.DialogResult = DialogResult.Ok;
					dialog.Close ();
				};
				var cancelButton = new Button { Text = "Cancel" };
				dialog.AbortButton = cancelButton;
				cancelButton.Click += (sender, e) => {
					dialog.Close ();
				};
				layout.BeginVertical ();
				layout.AddRow (new Label { Text = "Url" }, textBox);
				layout.EndBeginVertical ();
				layout.AddRow (null, cancelButton, goButton);
				layout.EndVertical ();

				if (dialog.ShowDialog (this) == DialogResult.Ok) {
					Uri uri;
					if (Uri.TryCreate(textBox.Text, UriKind.Absolute, out uri))
						webView.Url = uri;
				}
			};
			return control;
		}
开发者ID:majorsilence,项目名称:Eto,代码行数:37,代码来源:WebViewSection.cs

示例8: LoadUrl

		Control LoadUrl()
		{
			var control = new Button
			{
				Text = "Load Url"
			};
			control.Click += delegate
			{
				if (Platform.Supports<Dialog>())
				{
					var dialog = new Dialog<bool>();
					if (Platform.IsDesktop)
						dialog.MinimumSize = new Size(300, 0);

					var layout = new DynamicLayout();
					var textBox = new TextBox { Text = "http://google.com" };
					var goButton = new Button { Text = "Go" };
					dialog.DefaultButton = goButton;
					goButton.Click += (sender, e) => dialog.Close(true);
					var cancelButton = new Button { Text = "Cancel" };
					dialog.AbortButton = cancelButton;
					cancelButton.Click += (sender, e) => dialog.Close();
					layout.BeginVertical();
					layout.AddRow(new Label { Text = "Url" }, textBox);
					layout.EndBeginVertical();
					layout.AddRow(null, cancelButton, goButton);
					layout.EndVertical();

					dialog.Content = layout;


					if (dialog.ShowModal(this))
					{
						Uri uri;
						if (Uri.TryCreate(textBox.Text, UriKind.Absolute, out uri))
							webView.Url = uri;
					}
				}
				else
					webView.Url = new Uri("http://google.com");
			};
			return control;
		}
开发者ID:gene-l-thomas,项目名称:Eto,代码行数:43,代码来源:WebViewSection.cs

示例9: Metrics

		Control Metrics()
		{
			var layout = new DynamicLayout { DefaultSpacing = new Size(5, 5) };
			layout.BeginHorizontal();
			layout.BeginVertical();
			layout.Add(null);
			layout.AddRow(new Label { Text = "Descent" }, Descender());
			layout.AddRow(new Label { Text = "Ascent" }, Ascender());
			layout.AddRow(new Label { Text = "Leading" }, Leading());
			layout.Add(null);
			layout.EndBeginVertical();
			layout.Add(null);
			layout.AddRow(new Label { Text = "BaseLine" }, BaseLine());
			layout.AddRow(new Label { Text = "XHeight" }, XHeight());
			layout.AddRow(new Label { Text = "LineHeight" }, LineHeight());
			layout.Add(null);
			layout.EndBeginVertical();
			layout.Add(null);
			layout.Add(MetricsPreview());
			layout.Add(null);
			layout.EndVertical();
			layout.EndHorizontal();
			return layout;
		}
开发者ID:GilbertoBotaro,项目名称:Eto,代码行数:24,代码来源:FontDialogSection.cs

示例10: Metrics

		Control Metrics()
		{
			var layout = new DynamicLayout { DefaultSpacing = new Size(5, 5) };
			layout.BeginHorizontal();
			layout.BeginVertical();
			layout.Add(null);
			layout.AddRow("Descent", Descender());
			layout.AddRow("Ascent", Ascender());
			layout.AddRow("Leading", Leading());
			layout.AddRow("MeasureString", MeasureString());
			layout.Add(null);
			layout.EndBeginVertical();
			layout.Add(null);
			layout.AddRow("BaseLine", BaseLine());
			layout.AddRow("XHeight", XHeight());
			layout.AddRow("LineHeight", LineHeight());
			layout.Add(null);
			layout.EndBeginVertical();
			layout.Add(null);
			layout.Add(MetricsPreview());
			layout.Add(null);
			layout.EndVertical();
			layout.EndHorizontal();
			return layout;
		}
开发者ID:picoe,项目名称:Eto,代码行数:25,代码来源:FontDialogSection.cs


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