Class TaskBarItem
Represents TaskBar item control.
Inheritance
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
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 |
---|
System.Windows.DependencyProperty |
AllowExpandProperty
Identifies the AllowExpandProperty of the Taskbar item
Declaration
public static readonly DependencyProperty AllowExpandProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
AttachHeaderProperty
Identifies AttachHeader dependency attached property.
Declaration
public static readonly DependencyProperty AttachHeaderProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
HeaderBackgroundProperty
Identifies the HeaderBackground of the Taskbar item
Declaration
public static readonly DependencyProperty HeaderBackgroundProperty
Field Value
Type |
---|
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 |
|
AllowExpand
Gets or sets a value indicating whether [allow expand].
Declaration
public bool AllowExpand { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
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 |
---|
System.Windows.PropertyChangedCallback |