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


C# CheckBox.Bind方法代码示例

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


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

示例1: ConnectPathControl

		Control ConnectPathControl()
		{
			var control = new CheckBox { Text = "Connect Paths" };
			control.Bind(cb => cb.Checked, this, r => r.ConnectPath);
			control.CheckedChanged += Refresh;
			return control;
		}
开发者ID:JohnACarruthers,项目名称:Eto,代码行数:7,代码来源:GraphicsPathSection.cs

示例2: CloseFiguresControl

		Control CloseFiguresControl()
		{
			var control = new CheckBox { Text = "Close Figures" };
			control.Bind(cb => cb.Checked, this, r => r.CloseFigures);
			control.CheckedChanged += Refresh;
			return control;
		}
开发者ID:JohnACarruthers,项目名称:Eto,代码行数:7,代码来源:GraphicsPathSection.cs

示例3: AutoConnectButton

		Control AutoConnectButton ()
		{
			var control = new CheckBox { Text = "Connect on Startup" };
			control.Bind ("Checked", "ConnectOnStartup", DualBindingMode.OneWay);
			return control;
		}
开发者ID:neiz,项目名称:JabbR.Eto,代码行数:6,代码来源:ServerDialog.cs

示例4: ExpandContentHeight

		Control ExpandContentHeight()
		{
			var control = new CheckBox { Text = "ExpandContentHeight" };
			control.Bind(r => r.Checked, defaultScrollable, s => s.ExpandContentHeight);
			return control;
		}
开发者ID:JohnACarruthers,项目名称:Eto,代码行数:6,代码来源:DockLayoutExpansion.cs

示例5: UseGraphicsPathClipControl

		Control UseGraphicsPathClipControl()
		{
			var control = new CheckBox { Text = "Use graphics path clip" };
			control.Bind(r => r.Checked, this, r => r.UseGraphicsPathClip);
			return control;
		}
开发者ID:JohnACarruthers,项目名称:Eto,代码行数:6,代码来源:ClearSection.cs

示例6: UseClearColorControl

		Control UseClearColorControl()
		{
			var control = new CheckBox { Text = "Use Red Clear Color at 0.5 alpha" };
			control.Bind(r => r.Checked, this, r => r.UseClearColor);
			return control;
		}
开发者ID:JohnACarruthers,项目名称:Eto,代码行数:6,代码来源:ClearSection.cs

示例7: EnableContextMenu

		Control EnableContextMenu()
		{
			var control = new CheckBox { Text = "Enable Context Menu" };
			control.Bind(r => r.Checked, webView, w => w.BrowserContextMenuEnabled);
			return control;
		}
开发者ID:gene-l-thomas,项目名称:Eto,代码行数:6,代码来源:WebViewSection.cs

示例8: UseMetroTheme

 Control UseMetroTheme()
 {
     var control = new CheckBox { Text = "Use Metro Theme" };
     control.Bind(r => r.Checked, config, r => r.UseMetroTheme, DualBindingMode.OneWay);
     return control;
 }
开发者ID:jschell,项目名称:JabbR.Eto,代码行数:6,代码来源:PreferencesDialog.cs

示例9: Reverse

		Control Reverse()
		{
			var control = new CheckBox { Text = "Reverse" };
			control.Bind(r => r.Checked, (PrintSettings s) => s.Reverse);
			return control;
		}
开发者ID:JohnACarruthers,项目名称:Eto,代码行数:6,代码来源:PrintDialogSection.cs

示例10: Collate

		Control Collate()
		{
			var control = new CheckBox { Text = "Collate" };
			control.Bind(r => r.Checked, (PrintSettings s) => s.Collate);
			return control;
		}
开发者ID:JohnACarruthers,项目名称:Eto,代码行数:6,代码来源:PrintDialogSection.cs

示例11: ResetClipControl

		Control ResetClipControl()
		{
			var control = new CheckBox { Text = "Reset Clip" };
			control.Bind(r => r.Checked, this, r => r.ResetClip);
			return control;
		}
开发者ID:Exe0,项目名称:Eto,代码行数:6,代码来源:ClipSection.cs

示例12: UseBackgroundColorControl

		Control UseBackgroundColorControl ()
		{
			var control = new CheckBox { Text = "Use Background Color" };
			control.Bind (c => c.Checked, this, c => c.UseBackgroundColor);
			return control;
		}
开发者ID:Exe0,项目名称:Eto,代码行数:6,代码来源:BrushSection.cs

示例13: ItalicFont

		Control ItalicFont()
		{
			var control = new CheckBox { Text = "Italic", Enabled = false };
			control.Bind(r => r.Checked, (Font f) => f.Italic);
			return control;
		}
开发者ID:JohnACarruthers,项目名称:Eto,代码行数:6,代码来源:FontDialogSection.cs

示例14: BoldFont

		Control BoldFont()
		{
			var control = new CheckBox { Text = "Bold", Enabled = false };
			control.Bind(r => r.Checked, (Font f) => f.Bold);
			return control;
		}
开发者ID:JohnACarruthers,项目名称:Eto,代码行数:6,代码来源:FontDialogSection.cs


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