本文整理汇总了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;
}
示例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;
}
示例3: AutoConnectButton
Control AutoConnectButton ()
{
var control = new CheckBox { Text = "Connect on Startup" };
control.Bind ("Checked", "ConnectOnStartup", DualBindingMode.OneWay);
return control;
}
示例4: ExpandContentHeight
Control ExpandContentHeight()
{
var control = new CheckBox { Text = "ExpandContentHeight" };
control.Bind(r => r.Checked, defaultScrollable, s => s.ExpandContentHeight);
return control;
}
示例5: UseGraphicsPathClipControl
Control UseGraphicsPathClipControl()
{
var control = new CheckBox { Text = "Use graphics path clip" };
control.Bind(r => r.Checked, this, r => r.UseGraphicsPathClip);
return control;
}
示例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;
}
示例7: EnableContextMenu
Control EnableContextMenu()
{
var control = new CheckBox { Text = "Enable Context Menu" };
control.Bind(r => r.Checked, webView, w => w.BrowserContextMenuEnabled);
return control;
}
示例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;
}
示例9: Reverse
Control Reverse()
{
var control = new CheckBox { Text = "Reverse" };
control.Bind(r => r.Checked, (PrintSettings s) => s.Reverse);
return control;
}
示例10: Collate
Control Collate()
{
var control = new CheckBox { Text = "Collate" };
control.Bind(r => r.Checked, (PrintSettings s) => s.Collate);
return control;
}
示例11: ResetClipControl
Control ResetClipControl()
{
var control = new CheckBox { Text = "Reset Clip" };
control.Bind(r => r.Checked, this, r => r.ResetClip);
return control;
}
示例12: UseBackgroundColorControl
Control UseBackgroundColorControl ()
{
var control = new CheckBox { Text = "Use Background Color" };
control.Bind (c => c.Checked, this, c => c.UseBackgroundColor);
return control;
}
示例13: ItalicFont
Control ItalicFont()
{
var control = new CheckBox { Text = "Italic", Enabled = false };
control.Bind(r => r.Checked, (Font f) => f.Italic);
return control;
}
示例14: BoldFont
Control BoldFont()
{
var control = new CheckBox { Text = "Bold", Enabled = false };
control.Bind(r => r.Checked, (Font f) => f.Bold);
return control;
}