Пример #1
0
        public ScrollBarTrack(ScrollBarTrackDefaults type)
        {
            switch (type)
            {
            case ScrollBarTrackDefaults.Normal:
                this._color = SystemColors.Window;
                break;

            case ScrollBarTrackDefaults.Highlight:
                this._color = SystemColors.ControlText;
                break;

            case ScrollBarTrackDefaults.Disabled:
                this._color = SystemColors.Window;
                break;
            }
            this._borderStyle   = ScrollBarBorderStyle.Solid;
            this._borderColor   = SystemColors.ControlText;
            this._gradientColor = new Resco.Controls.ScrollBar.GradientColor(FillDirection.Horizontal);
            this._gradientColor.PropertyChanged += new EventHandler(this.GradientColor_PropertyChanged);
            this._image       = null;
            this._trackLayout = ScrollBarTrackLayout.FixedToTrack;
        }
Пример #2
0
        public ScrollBarTrack(ScrollBarTrackDefaults type)
        {
            switch (type)
            {
                case ScrollBarTrackDefaults.Normal:
                    this._color = SystemColors.Window;
                    break;

                case ScrollBarTrackDefaults.Highlight:
                    this._color = SystemColors.ControlText;
                    break;

                case ScrollBarTrackDefaults.Disabled:
                    this._color = SystemColors.Window;
                    break;
            }
            this._borderStyle = ScrollBarBorderStyle.Solid;
            this._borderColor = SystemColors.ControlText;
            this._gradientColor = new Resco.Controls.ScrollBar.GradientColor(FillDirection.Horizontal);
            this._gradientColor.PropertyChanged += new EventHandler(this.GradientColor_PropertyChanged);
            this._image = null;
            this._trackLayout = ScrollBarTrackLayout.FixedToTrack;
        }