Articles in this section
Category / Section

How can I hide and show the header of a Taskbar through code ?

1 min read

 

The header of the task bar can be hidden and shown through code. The following example shows how to hide or show the header of the task bar.

[C#]

//set the header as visible using the header style Setter ss = new Setter(); Style style = new Style(); ss.Property = TaskBar.VisibilityProperty; ss.Value = Visibility.Visible; style.Setters.Add(ss); TaskBar.SetValue(TaskBar.HeaderStyleProperty, style); //set the header to collpased using the header style Setter ss = new Setter(); Style style = new Style(); ss.Property = TaskBar.VisibilityProperty; ss.Value = Visibility.Collapsed; style.Setters.Add(ss); TaskBar.SetValue(TaskBar.HeaderStyleProperty, style);

Syncfusion Inc.

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied