CustomChrome.VisualStudioFormChrome.VisualStudioFormChrome C# (CSharp) Method

VisualStudioFormChrome() public method

public VisualStudioFormChrome ( ) : System
return System
        public VisualStudioFormChrome()
        {
            Buttons = new VisualStudioButtonCollection(this);

            _formChrome = new FormChrome
            {
                CaptionHeight = 31,
                ResizeBorderThickness = new Padding(0),
                DoubleBuffered = true
            };

            _formChrome.NonClientAreaPaint += _formChrome_NonClientAreaPaint;
            _formChrome.NonClientMouseDown += _formChrome_NonClientMouseDown;
            _formChrome.NonClientMouseUp += _formChrome_NonClientMouseUp;
            _formChrome.NonClientMouseLeave += _formChrome_NonClientMouseLeave;
            _formChrome.NonClientMouseMove += _formChrome_NonClientMouseMove;
            _formChrome.SystemCommand += _formChrome_SystemCommand;

            _blackImageCache = new ImageCache(Color.Black);
            _whiteImageCache = new ImageCache(Color.White);
            _grayImageCache = new ImageCache(SystemColors.ControlDark);

            PrimaryColor = Color.FromArgb(0, 122, 204);
            BorderColor = Color.FromArgb(0, 122, 204);
        }