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.
Unfortunately, activation email could not send to your email. Please try again.

TaskBarItem Template

Thread ID:

Created:

Updated:

Platform:

Replies:

88189 Jul 16,2009 04:51 PM Jul 17,2009 02:57 AM WPF 1
loading
Tags: Tools
Marc Glick
Asked On July 16, 2009 04:51 PM

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.

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

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

CONFIRMATION

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.

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.

;