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.

TabControl dynamic header style/template

Thread ID:

Created:

Updated:

Platform:

Replies:

114157 Oct 31,2013 09:15 AM Feb 6,2014 11:08 AM WinRT 5
loading
Tags: Tools
C. Veeningen
Asked On October 31, 2013 09:15 AM

Hi,

I would like to use the tabcontrol with some more flexibility than the default properties for changing the selectedFore- and background.

I tried using the headertemplateselector, but that's only firing once on loading. Is there a way to define a style/template per header with a different style/template?

I would like to change the fontsize etc. of the header when it's selected. Also would be nice if there is a kind of hover behaviour for the not selected items.

Hope you can help me.


Victory Jessie Selvam D [Syncfusion]
Replied On November 4, 2013 08:56 AM

Hi Veeningen,

Sorry for the delay being caused.

We have prepared a sample to achieve your requirement. In the sample we have set the ItemContainerStyle of SfTabControl this applies different templates(defined in resources) for the ContentPresenter displaying header based on visual states. For the hover behavior, we have changed the HeaderTemplate of the tab item when mouse is hover the tabitem using tabcontrol's pointer events.

Please let us know whether the provided sample meets your requirement.

Regards,
Victory


TabControl_102883_ef6f3beb.zip

aaron
Replied On February 4, 2014 03:46 PM

I’m having a similar issue. I have a Tab item header that must be a data template. When switching to FullscreenPortrait mode I need to be able to control one of the properties in the template. I tried to download the sample zip file provided but my Download failed.   


Vignesh V [Syncfusion]
Replied On February 5, 2014 07:27 AM

Hi Aaron,

Sorry about the inconvenience caused.

Due to some internal server problems, attached sample is unable to download. We have re-uploaded the sample and it can be downloaded from below link.

Sample link:  TabControl_114157

Please let us know if you have any queries.

Regards,
Vignesh V

Dave Davis
Replied On February 5, 2014 02:24 PM

This sample does not adjust based upon device orientation.  Do you have an example that does that?


Ravuthasamy D [Syncfusion]
Replied On February 6, 2014 11:08 AM

Hi Dave,

We have prepared a simple sample to address your requirement 'To change Template while orientation is changed’, In order to achieve this requirement we need to use two different Templates(for ItemTemplate),it is not possible with single template.

Please find the sample in below link,

Sample Link : http://www.syncfusion.com/downloads/support/directtrac/general/TabControl_114157465947151.zip

Please let us know if you need any further assistance,

Regards,

Ravuthasamy D


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.

;