menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TaskBarItem - API Reference

    Show / Hide Table of Contents

    Class TaskBarItem

    Represents TaskBar item control.

    Inheritance
    System.Object
    TaskBarItem
    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    [SkinType(SkinVisualStyle = Skin.Office2010Blue, Type = typeof(TaskBar), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/TaskBar/Themes/Office2010BlueStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2007Silver, Type = typeof(TaskBar), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/TaskBar/Themes/Office2007SilverStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2010Black, Type = typeof(TaskBar), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/TaskBar/Themes/Office2010BlackStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2010Silver, Type = typeof(TaskBar), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/TaskBar/Themes/Office2010SilverStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2003, Type = typeof(TaskBar), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/TaskBar/Themes/Office2003Style.xaml")]
    [SkinType(SkinVisualStyle = Skin.Blend, Type = typeof(TaskBar), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/TaskBar/Themes/BlendStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.SyncOrange, Type = typeof(TaskBar), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/TaskBar/Themes/SyncOrangeStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2007Black, Type = typeof(TaskBar), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/TaskBar/Themes/Office2007BlackStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.ShinyBlue, Type = typeof(TaskBar), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/TaskBar/Themes/ShinyBlueStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Default, Type = typeof(TaskBar), XamlResource = "/Syncfusion.Tools.Wpf;component/Controls/TaskBar/Themes/generic.xaml")]
    [SkinType(SkinVisualStyle = Skin.VS2010, Type = typeof(TaskBar), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/TaskBar/Themes/VS2010Style.xaml")]
    [SkinType(SkinVisualStyle = Skin.Metro, Type = typeof(TaskBar), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/TaskBar/Themes/MetroStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Transparent, Type = typeof(TaskBar), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/TaskBar/Themes/TransparentStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.ShinyRed, Type = typeof(TaskBar), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/TaskBar/Themes/ShinyRedStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2007Blue, Type = typeof(TaskBar), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/TaskBar/Themes/Office2007BlueStyle.xaml")]
    public class TaskBarItem : HeaderedItemsControl
    Remarks

    UI framework element based on System.Windows.Controls.HeaderedItemsControl class. Control is used for grouping of given content objects. Used as wrapper in TaskBar.

    Examples

    This example shows how to create a TaskBarItem in XAML.

    <Window x:Class="TaskBar.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="TaskBar" Height="300" Width="300">
    <StackPanel HorizontalAlignment="Center">
    <local:TaskBar Name="taskBar">
    <local:TaskBarItem Name="taskBarItem"/>
    </local:TaskBar>
    </StackPanel>
    </Window>

    This example shows how to create a TaskBarItem in C#.

    using System.Windows;
    using System.Windows.Controls;
    namespace Sample1
    {
    public partial class Window1 : Window
    {
    public Window1()
    {
    InitializeComponent();
    TaskBar taskBar = new TaskBar();
    stackPanel.Children.Add( taskBar );
    TaskBarItem item = new TaskBarItem();
    taskBar.Items.Add( item );
    }
    }
    }

    Constructors

    TaskBarItem()

    Initializes a new instance of the TaskBarItem class.

    Declaration
    public TaskBarItem()

    TaskBarItem(Object)

    Initializes a new instance of the TaskBarItem class.

    Declaration
    public TaskBarItem(object item)
    Parameters
    Type Name Description
    System.Object item

    The item task bar item.

    Fields

    AllowCollapseProperty

    Identifies the AllowCollapseProperty of the Taskbar item

    Declaration
    public static readonly DependencyProperty AllowCollapseProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    AllowExpandProperty

    Identifies the AllowExpandProperty of the Taskbar item

    Declaration
    public static readonly DependencyProperty AllowExpandProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    AttachHeaderProperty

    Identifies AttachHeader dependency attached property.

    Declaration
    public static readonly DependencyProperty AttachHeaderProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    HeaderBackgroundProperty

    Identifies the HeaderBackground of the Taskbar item

    Declaration
    public static readonly DependencyProperty HeaderBackgroundProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    Properties

    AllowCollapse

    Gets or sets a value indicating whether [allow collapse].

    Declaration
    public bool AllowCollapse { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if [allow collapse]; otherwise, false.

    AllowExpand

    Gets or sets a value indicating whether [allow expand].

    Declaration
    public bool AllowExpand { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if [allow expand]; otherwise, false.

    HeaderBackground

    Gets or sets the header background.

    Declaration
    public Brush HeaderBackground { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    The header background.

    Methods

    GetAttachHeader(DependencyObject)

    Method gets the value of AttachHeader attached property from given object.

    Declaration
    public static object GetAttachHeader(DependencyObject obj)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj

    Given object.

    Returns
    Type Description
    System.Object

    object type

    HideHeader()

    Used to hide Header of TaskBarItem

    Declaration
    public void HideHeader()

    OnApplyTemplate()

    When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate.

    Declaration
    public override void OnApplyTemplate()

    OnAttachHeaderChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises AttachHeaderChanged event.

    Declaration
    protected virtual void OnAttachHeaderChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property changes details, such as old value and new value.

    SetAttachHeader(DependencyObject, Object)

    Sets the attach header.

    Declaration
    public static void SetAttachHeader(DependencyObject obj, object value)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj

    The obj DependencyObject.

    System.Object value

    The value.

    ShowHeader()

    Used to Show Header of TaskBarItem

    Declaration
    public void ShowHeader()

    WrappedRemoveLogicalChild(Object)

    Wrapped the remove logical child.

    Declaration
    public void WrappedRemoveLogicalChild(object item)
    Parameters
    Type Name Description
    System.Object item

    The item of wrapped logical child.

    Events

    AttachHeaderChanged

    Event that is raised when AttachHeader property is changed.

    Declaration
    public event PropertyChangedCallback AttachHeaderChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved