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; }
        }
    }

相关文章:

  • 2022-12-23
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-07-31
  • 2021-09-24
猜你喜欢
  • 2021-04-07
  • 2021-08-30
  • 2021-09-09
  • 2021-05-18
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案