Category / Section
How to load custom controls in WinForms XPTaskBar?
1 min read
Load custom controls
You can host multiple controls of the XP TaskBar box, by placing the panel in the XPTaskBarBox. The PreferredChildPanelHeight property controls the panel’s height. The panel fills the entire XPTaskBarBox, width-wise.
C#
// Sets the preferred height for the child panel placed in the XPTaskBarBox. this.xpTaskBarBox1.PreferredChildPanelHeight = 100;
VB
'Sets the preferred height for the child panel placed in the XPTaskBarBox. Me.xpTaskBarBox1.PreferredChildPanelHeight = 100
Note:
The PreferredChildPanelHeight property helps to set the height of the panel hosted in the XPTaskBar boxes.
Figure 1: PreferredChildPanelHeight specified for XP TaskBarBox is 30
Figure 2: PreferredChildPanelHeight specified for XP TaskBarBox is 100
Samples: