We have the following need: the title of a Tab should not be plain text, but as follows: a label followed by a number inside a red circle.
for example the tab header caption shoudl be : 'Projects (20)', 20 being in a circle to indicate for example the number of new items.
How can we do this? Is it possible to put html text in the tab header? Can we at least change the color of one part of the headr text of a tab?
Thanks for your help.
Pierre
Hello Pierre,
I attached sample that demonstrates how to use the Appearance object exposed from the Tabs collection and added an image (right-aligned) next to the text of a tab. eg. Projects (20)
The Tabs text is customizable, but you won't be able to embed a label, html or control inside it easily without using a DrawFilter. The Appearance object is at your disposal to fully take over what's displayed.
eg. http://help.infragistics.com/doc/WinForms/2014.2/CLR4.0/?page=WinTab_Defining_the_Appearance_of_WinTab_and_WinTabStrip.html
If you need to the tab to perform some type of function when it's clicked on you can use the SelectedTabChanged event and provide your custom logic that would for example have something to do with your html.
http://help.infragistics.com/doc/WinForms/2014.2/CLR4.0/?page=Infragistics4.Win.UltraWinTabControl.v14.2~Infragistics.Win.UltraWinTabControl.UltraTabControlBase~SelectedTabChanged_EV.html
Please review my sample and let me know if you have any questions.