How to specify the QAT dropdown button alignment in the WinForms RibbonControlAdv?
QAT dropdown button
In the RibbonControlAdv, the QAT DropDownButton is placed at the right side of the Menu button and at the left side of the ToolStripTabItems, by default. The QAT DropDown button alignment can be customized in the following categories:
- Left: To specify the QAT DropDownButton alignment to the left.
- Right: To specify the right alignment of the QAT DropDown button.
The QAT DropDown button can be placed either at the left or right side of the ToolStripTabItems by using the QuickPanelAlignment property in the RibbonControlAdv.
C#
//Specifies the QAT DropDown button at the default left position. this.ribbonControlAdv1.QuickPanelAlignment = QuickPanelAlignment.Left; //Specifies the QAT DropDown button at the right side of the ToolStripTabItems. this.ribbonControlAdv1.QuickPanelAlignment = QuickPanelAlignment.Right;
VB
'Specifies the QAT DropDown button at the default left position. Me.ribbonControlAdv1.QuickPanelAlignment = QuickPanelAlignment.Left 'Specifies the QAT DropDown button at the right side of the ToolStripTabItems. Me.ribbonControlAdv1.QuickPanelAlignment = QuickPanelAlignment.Right
The QuickPanelAlignment property is only applicable when the RibbonStyle is set as TouchStyle.
Figure 1: QAT DropDown button aligned in default location
Figure 2: QAT DropDown button aligned at the right side of the ToolStripTab item
Samples:
C#: QAT_DropDown_C#
VB: QAT_DropDown_VB