Syncfusion.Tools.Windows
Members 


XPTaskBar Class

Represents a Windows XP like task menu panel.
Object Model
XPTaskBar ClassFlowLayout ClassScrollersFrame Class
Syntax
'Declaration
 
<DescriptionAttribute("Represents a Windows XP like task menu panel.")>
<DefaultChildTypeAttribute(Syncfusion.Windows.Forms.Tools.XPTaskBarBox)>
<DesignerAttribute(Syncfusion.Windows.Forms.Tools.Design.XPTaskBarDesigner, System.ComponentModel.Design.IDesigner)>
<ToolboxBitmapAttribute(Syncfusion.Windows.Forms.Tools.XPTaskBar, "ToolboxIcons.XPTaskBar.bmp")>
<DefaultPropertyAttribute("BorderStyle")>
<DefaultEventAttribute("Paint")>
<DockingAttribute(DockingBehavior.Ask)>
<SRDescriptionAttribute("DescriptionPanel")>
<DesignerSerializerAttribute("System.Windows.Forms.Design.ControlCodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>
<ToolboxItemFilterAttribute("System.Windows.Forms")>
<DesignerCategoryAttribute("Component")>
Public Class XPTaskBar 
   Inherits System.Windows.Forms.Panel
   Implements Syncfusion.Drawing.INonClientPaintingSupport, Syncfusion.Windows.Forms.IVisualStyle 
'Usage
 
Dim instance As XPTaskBar
[Description("Represents a Windows XP like task menu panel.")]
[DefaultChildType(Syncfusion.Windows.Forms.Tools.XPTaskBarBox)]
[Designer(Syncfusion.Windows.Forms.Tools.Design.XPTaskBarDesigner, System.ComponentModel.Design.IDesigner)]
[ToolboxBitmap(Syncfusion.Windows.Forms.Tools.XPTaskBar, "ToolboxIcons.XPTaskBar.bmp")]
[DefaultProperty("BorderStyle")]
[DefaultEvent("Paint")]
[Docking(DockingBehavior.Ask)]
[SRDescription("DescriptionPanel")]
[DesignerSerializer("System.Windows.Forms.Design.ControlCodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[ToolboxItemFilter("System.Windows.Forms")]
[DesignerCategory("Component")]
public class XPTaskBar : System.Windows.Forms.Panel, Syncfusion.Drawing.INonClientPaintingSupport, Syncfusion.Windows.Forms.IVisualStyle  
Remarks

An XPTaskBar is a panel that can display a set of command items (XPTaskBarItem) or frequently used features (like "Search", "Advanced Search", etc) in panels, that can be classified, contained and displayed within one or more command boxes (XPTaskBarBox). The command boxes themselves can be expanded and collapsed by the user, to show or hide its set of command items and optionally a child panel.

This task bar panel can be used to provide quick and easy shortcuts to commonly used commands and features.

To enable themes support in XP turn on the ThemesEnabled property.

This is the look-and-feel used in the Windows XP Control Panel Window.

Example
The following example creates a XPTaskBar with 2 XPTaskBarBoxs and few XPTaskBarItems.

Use the Syncfusion.Windows.Forms.Tools namespace for this code.

XPTaskBarBox taskBarBox1 = new XPTaskBarBox(); taskBarBox1.HeaderBackColor = Color.Blue; taskBarBox1.ImageList = this.imageList1; taskBarBox1.Text = "Header Text"; taskBarBox1.ItemBackColor = Color.WhiteSmoke; taskBarBox1.Items.Add(new XPTaskBarItem("Item 1", Color.Black, 0, "Tag1")); taskBarBox1.Items.Add(new XPTaskBarItem("Item 2", Color.Black, 0, "Tag2")); taskBarBox1.ItemClick += new XPTaskBarItemClickHandler(xpTaskBarBox_ItemClick); XPTaskBarBox taskBarBox2 = new XPTaskBarBox(); taskBarBox2.HeaderBackColor = Color.Blue; taskBarBox2.ImageList = this.imageList1; taskBarBox2.Text = "Another Header Text"; taskBarBox2.ItemBackColor = Color.WhiteSmoke; taskBarBox2.Items.Add(new XPTaskBarItem("Item 3", Color.Black, 0, "Tag3")); taskBarBox2.ItemClick += new XPTaskBarItemClickHandler(this.xpTaskBarBox_ItemClick); this.xpTaskBar1.Controls.Add(taskBarBox1); this.xpTaskBar1.Controls.Add(taskBarBox2); Dim taskBarBox1 As XPTaskBarBox taskBarBox1 = New XPTaskBarBox() taskBarBox1.HeaderBackColor = Color.Blue taskBarBox1.ImageList = Me.imageList1 taskBarBox1.Text = "Header Text" taskBarBox1.ItemBackColor = Color.WhiteSmoke taskBarBox1.Items.Add(New XPTaskBarItem("Item 1", Color.Black, 0, "Tag1")) taskBarBox1.Items.Add(New XPTaskBarItem("Item 2", Color.Black, 0, "Tag2")) AddHandler taskBarBox1.ItemClick, New XPTaskBarItemClickHandler(AddressOf taskMenuBox_ItemClick) Dim taskBarBox2 As XPTaskBarBox taskBarBox2 = New XPTaskBarBox() taskBarBox2.HeaderBackColor = Color.Blue taskBarBox2.ImageList = Me.imageList1 taskBarBox2.Text = "Another Header Text" taskBarBox2.ItemBackColor = Color.WhiteSmoke taskBarBox2.Items.Add(New XPTaskBarItem("Item 3", Color.Black, 0, "Tag3")) AddHandler taskBarBox2.ItemClick, New XPTaskBarItemClickHandler(AddressOf taskMenuBox_ItemClick) Me.xpTaskBar1.Controls.Add(taskBarBox1) Me.xpTaskBar1.Controls.Add(taskBarBox2)
Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         System.Windows.Forms.Control
            System.Windows.Forms.ScrollableControl
               System.Windows.Forms.Panel
                  Syncfusion.Windows.Forms.Tools.XPTaskBar

AssemblyVersion

Syncfusion.Tools.Windows: 17.3460.0.26

See Also