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. Image for the cookie policy date
close icon

TaskBarItem Template

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:




HorizontalAlignment="Left"
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.

1 Reply

PP Prabhu P Syncfusion Team 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.

Regards,
Prabu

Loader.
Live Chat Icon For mobile
Up arrow icon