示例#1
0
        /// <summary>
        /// Represents a control that creates a container that has a border and a header for user interface (UI) content.
        /// </summary>
        public GroupBox() : base()
        {
            SetStyle(ControlStyles.ContainerControl, true);
            SetStyle(ControlStyles.SupportsTransparentBackColor |
                     ControlStyles.UserPaint |
                     ControlStyles.ResizeRedraw, true);

            SetStyle(ControlStyles.Selectable, false);
            TabStop                = false;
            _dirty                 = true;
            _headerElements        = new HeaderElements(this);
            _insideBoarderElements = new InsideBorderElements(this);
            _borderElements        = new BorderElements(this);
        }
示例#2
0
        /// <summary>
        /// Represents a control that creates a container that has a border and a header for user interface (UI) content.
        /// </summary>
        public EnhanceGroupBox() : base()
        {
            SetStyle(ControlStyles.ContainerControl, true);
            SetStyle(ControlStyles.SupportsTransparentBackColor |
                     ControlStyles.UserPaint |
                     ControlStyles.ResizeRedraw, true);

            SetStyle(ControlStyles.Selectable, false);
            TabStop         = false;
            _dirty          = true;
            _headerElements = new HeaderElements();
            _headerElements.RaisePropertyChanged += RaisePropertyChanged;
            _insideBoarderElements = new InsideBorderElements();
            _insideBoarderElements.RaisePropertyChanged += RaisePropertyChanged;
            _borderElements = new BorderElements();
            _borderElements.RaisePropertyChanged += RaisePropertyChanged;
            _controlElements = new ControlElements();
            _controlShape    = new ControlShape();
        }