Various Controls carried on the ribbon are ribbon controls, and only ribbon controls can be placed on the ribbon of the ribbon style interface, and only ribbon controls can be placed on the ribbon. Ribbon controls include Button, GalleryButton, Drop-down Button controls, CheckBox, ComboBox, and ColorButton. All Ribbon controls used in Application are described in detail below.
Button Control (Button)
The following figure shows the button control in Application. The display content on the button is divided into two parts. The picture on the button is the display icon of the button, and the text content on the button is the Show Name of the button. The function bound to the button can be realized by clicking the button.
Gallery Button control
The Gallery Button control can only be placed in the container control named Gallery in the ribbon, as shown in the following figure. The display content on the Gallery Button control is divided into two parts. The picture on the control is the display icon, and the text content on the control is the Show Name of the control. The Gallery Button control is similar to a button control, and the function of binding with the control can be realized by clicking the Gallery Button control.
Drop-down control (RibbonPopupMenuItem)
The following figure shows a Drop-down Button control. The Drop-down Button is divided into two parts: one is the button part, which can be clicked to directly execute the corresponding function; The second is the Drop-down Button part. Click this part to pop up the drop-down menu. Select the options in the drop-down menu to realize the corresponding functions. The button part of the Drop-down Button displays the icon of the Drop-down Button, and the Drop-down Button part of the Drop-down Button displays the Show Name of the Drop-down Button.
Check Box Control (CheckBox)
The following figure shows the check box control. The text content on the check box control is the Show Name of the check box control. The user interacts with Application by selecting or not selecting the check box control. Application performs the corresponding operation by judging whether the check box is selected.
ComboBox Control (ComboBox)
The following figure shows a combo box control. The combo box control consists of a text box and a drop-down list. The drop-down list contains a series of subitems. In general, the user can enter content in the text box or select an item in the drop-down list. Application will process the corresponding operation according to the content displayed in the text box of the combo box.
Color Button Control (Color Button)
The following figure shows the color button control. The color displayed on the color button is the current color of the color button, that is, the color selected by the user. Click the Drop-down Button on the right side of the color button to pop up the color panel, from which the user can select the required color. If the color blocks in the color list are not enough to meet the user's needs, Click the "Color Library" button at the bottom of the color panel, and more colors can be obtained through the pop-up color dialog box. After the user chooses color, the current color of the color button will change to the color selected by the user, and the color of the color button obtained by Application is the current color of the color button.
Related content
Plug-in configuration overview