【发布时间】:2012-06-29 14:48:24
【问题描述】:
有没有办法在 .net win 表单中获得自定义绑定行为?
例如,我将控件连接到 BindingSource 对象并添加类似的绑定
this.slider.DataBindings.Add(new System.Windows.Forms.Binding("Enabled", this.bindingSourceModel, "FloatProperty > 0.5f", true));
上述方法无法正常工作,但我希望在 dataSource.FloatProperty 大于 0.5f 时启用它。
有什么办法吗?
【问题讨论】: