C# ToolStripStatusLabel中没有 DataBindings

https://social.msdn.microsoft.com/forums/windows/en-US/73de165c-e948-4015-bdcd-570f55a6e365/databinding-to-a-toolstripstatuslabel12

请问他们是怎么能在官网上提问题并且有人回复的啊。我提过好多问题,都得不到回复的,如果你们谁知道给我留言一下。

[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; }
        }
    }
posted @ 2021-12-21 17:38  LuoCore  阅读(98)  评论(0编辑  收藏  举报