C# ToolStripStatusLabel中没有 DataBindings
请问他们是怎么能在官网上提问题并且有人回复的啊。我提过好多问题,都得不到回复的,如果你们谁知道给我留言一下。
[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.StatusStrip)]
public class BindableToolStripStatusLabel : ToolStripStatusLabel, IBindableComponent
{
private BindingContext _context = null;
public BindingContext BindingContext
{
get
{
if (null == _context)
{
_context = new BindingContext();
}
return _context;
}
set { _context = value; }
}
private ControlBindingsCollection _bindings;
public ControlBindingsCollection DataBindings
{
get
{
if (null == _bindings)
{
_bindings = new ControlBindingsCollection(this);
}
return _bindings;
}
set { _bindings = value; }
}
}