We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set the Windows XP like gradient background color in the XPTaskBarBox?

The XPTaskBarBox allows you to dynamically provide background brushes for the header and items area.

To customize the appearance of the Header:

You can handle the ProvideHeaderBackgroundBrush event in the XPTaskBarBox to customize the appearance of the header.

The following code example shows how the gradient background color is applied to the header of the XPTaskBarBox.

C#

 

VB

 

Note: The appearance of the header background can be customized when the XPTaskBar style is set as Default and it is not applicable to other styles.

Figure 1: Before applying gradient back color to the header and item area in the XPTaskBarBox

 

Figure 2: After applying the Gradient back color to the header

To customize the appearance of the Item background:

You can similarly handle the ProvideItemsBackgroundBrush event in the XPTaskBarBox to customize the appearance of the item area.

The following code example shows how the gradient background color is applied to the item area.

C#

 

VB

 

Note: The appearance of the item background can be customized when the XPTaskBar style is set as Default and Metro.

 

Figure 3: Gradient back color is applied to the item area

 

Figure 4: Gradient back color is applied to the header and item area

Sample Links:

C#: XPTaskBar_GradientBackColor_C#

VB: XPTaskBar_GradientBackColor_VB

Article ID: Published Date: Last Revised Date: Platform: Control:
1212 04/30/2011 08/24/2015 WinForms XPTaskbar
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon