ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGroupRadioButton.CreateLargeRadioButtonView C# (CSharp) Method

CreateLargeRadioButtonView() private method

private CreateLargeRadioButtonView ( ) : void
return void
        private void CreateLargeRadioButtonView()
        {
            // Create the layout docker for the contents of the button
            _viewLarge = new ViewLayoutRibbonRadioButton();

            // Add the large button at the top
            _viewLargeImage = new ViewDrawRibbonGroupRadioButtonImage(_ribbon, _ribbonRadioButton, true);
            ViewLayoutRibbonCenterPadding largeImagePadding = new ViewLayoutRibbonCenterPadding(_largeImagePadding);
            largeImagePadding.Add(_viewLargeImage);
            _viewLarge.Add(largeImagePadding, ViewDockStyle.Top);

            // Add the first line of text
            _viewLargeText1 = new ViewDrawRibbonGroupRadioButtonText(_ribbon, _ribbonRadioButton, true);
            _viewLarge.Add(_viewLargeText1, ViewDockStyle.Bottom);

            // Add the second line of text
            _viewLargeText2 = new ViewDrawRibbonGroupRadioButtonText(_ribbon, _ribbonRadioButton, false);
            _viewLarge.Add(_viewLargeText2, ViewDockStyle.Bottom);

            // Add a 1 pixel separator at bottom of button before the text
            _viewLarge.Add(new ViewLayoutRibbonSeparator(1, false), ViewDockStyle.Bottom);

            // Create controller for handling mouse, keyboard and focus
            _viewLargeController = new GroupRadioButtonController(_ribbon, _viewLarge, _viewLargeImage, _needPaint);
            _viewLargeController.Click += new EventHandler(OnLargeRadioButtonClick);
            _viewLargeController.ContextClick += new MouseEventHandler(OnContextClick);
            _viewLarge.MouseController = _viewLargeController;
            _viewLarge.SourceController = _viewLargeController;
            _viewLarge.KeyController = _viewLargeController;

            // Create controller for intercepting events to determine tool tip handling
            _viewLarge.MouseController = new ToolTipController(_ribbon.TabsArea.ButtonSpecManager.ToolTipManager,
                                                               _viewLarge, _viewLarge.MouseController);
        }