How to customize the ToolStripTabItem visibility in the customized QAT dialog window in WinForms RibbonControlAdv?
Show or hide the ToolStripTabItem
You can show or hide the ToolStripTabItem in the customized QAT window of the RibbonControlAdv by using the function, SetUseInCustomQuickAccessDialog in the RibbonControlAdv.
C#
//Hides the ToolStripTabItem in the ComboBox of the Quick Access Dialog. this.ribbonControlAdv1.SetUseInCustomQuickAccessDialog(this.toolStripTabItem1, false); //Shows the ToolStripTabItem in the ComboBox of the Quick Access Dialog. this.ribbonControlAdv1.SetUseInCustomQuickAccessDialog(this.toolStripTabItem5, true);
VB
'Hides the ToolStripTabItem in the ComboBox of the Quick Access Dialog. Me.ribbonControlAdv1.SetUseInCustomQuickAccessDialog(Me.toolStripTabItem1, False) 'Shows the ToolStripTabItem in the ComboBox of the Quick Access Dialog. Me.ribbonControlAdv1.SetUseInCustomQuickAccessDialog(Me.toolStripTabItem5, True)
1)By default, all the items of the ToolStripTabItem are loaded in the ComboBox of the customized QAT window in the RibbonControlAdv.
2)The visibility of the ToolStripTabItem is also applicable to the customized Ribbon window of the RibbonControlAdv.
3)In order to show Quick item dropdown button, the property named “ShowQuickItemsDropDownButton” should be enabled in the RibbonControlAdv. The default value of the ShowQuickItemsDropDownButton is true.
Figure 1:ToolStripTabItems shown in the ComboBox of the QAT window
Figure 2: After hiding the ToolStripTabItem from the ComboBox
Figure 3: ToolStripTabItems shown in ComboBox
Figure 4: After hiding the ToolStripTabItems from the ComboBox
Sample Links:
Reference link: https://help.syncfusion.com/windowsforms/ribbon/quick-access-toolbar