How to show or hide the collapse and expand buttons in the WinForms XPTaskBar?
Show or hide the collapse and expand buttons
In the XPTaskBar, the property named ShowCollapseButton in the XPTaskBarBox helps to show or hide the collapse and expand buttons.
C#
//Shows expand and collapse buttons in the header. this.xpTaskBarBox1.ShowCollapseButton = true; //Hides expand and collapse buttons in the header. this.xpTaskBarBox1.ShowCollapseButton = false;
VB
'Shows expand and collapse button in the header. Me.xpTaskBarBox1.ShowCollapseButton = True 'Hides expand and collapse button in the header. Me.xpTaskBarBox1.ShowCollapseButton = False
1. XPTaskBarBox has a property, ShowCollapseButton that returns a Boolean value.
2. The default value of the ShowCollapseButton is true.

Figure 1: Collapse button in XPTaskBar

Figure 2: Collapse button hidden in XPTaskBar
Samples:
C#: XPTaskBar_CollapseButton_Visibility_C#
VB: XPTaskBar_CollapseButton_Visibility_VB
Reference link: https://help.syncfusion.com/windowsforms/xptaskbar/xptaskbar-box-settings#button-settings