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

TaskBarItem Template

Thread ID:





88189 Jul 16,2009 08:51 PM UTC Jul 17,2009 06:57 AM UTC WPF 1
Tags: Tools
Marc Glick
Asked On July 16, 2009 08:51 PM UTC

The TaskBarItem template builds upon the ExpanderExt control which in turn builds upon ToggleButtonExt. After examining the style and templates it seems as if the Header content is rendered via a ContentPresenter. However this ContentPresents is aligned left (or right) depending on the theme in use.

Quickly the template for the ToggleButton is as follows:

VerticalAlignment="Center" ..... />

As you allow us to set the style of the header via the TaskBar.HeaderStyle extension, it seems that it would make more sense for you allow us to control the HorizontalAlignment via the HorizontalContentAlignment of the HeaderStyle, as opposed to hard coding the "Left" (or "Right") alignment.

HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment" ..... />

As it stands right now, I have to painstakingly retemplate the control, just to get the header content to stretch.

If you take a look at Microsoft's implementation for example in Outlook, which of course you are trying to mimic, in the inbox header, the search entry is right aligned while the text is left aligned. Again, to accomplish a similar effect it seems as if I need to retemplate.

Prabhu P [Syncfusion]
Replied On July 17, 2009 06:57 AM UTC

Hi Marc,

Thank you for your interest in Syncfusion products.
We really appreciate your suggestion about the TaskBarItem’s Template changing. We will re-visit all product’s template including TaskBarItem Template and make the options which set the value by the end-user. The changes would be available in our future releases.

Please let us know if you have any other queries.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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