Hi!
Ich have a private Infragistics.Win.UltraWinTabControl.UltraTabControl whit 2 Infragistics.Win.UltraWinTabControl.UltraTab s
What I whant to have ist to change the Color of the Header or the Background of the second Tab.
How to do?
Wolfgang
The UltraTab has many appearance properties to control the header and tab page area: Appearance, ActiveAppearance, ClientAreaAppearance, HotTrackAppearance, and SelectedAppearance.
Thanks.
Yes there are many possibilites. But I cant find a Property to Change the headers background Color of one Tab. I only found the Color of Text or the header-area-background.
I try to change the Backgroundcolor of one Tab. The Apperence Property has 9 Color Options
BackColor, BackColor2, BackColorDisabled, BackColorDisabled2, BorderColor, BorderColor2, BorderColor3DBase, ForeColor and ForeColorDisabled
One the tab ther are the 5 Apperences you tell me but none of them change the Backgroundcolor of the Header.
Also the TabHeaderAreaAppearance seams to bring no result. Any idee what to try next?
To specify my Problem I have 2 Tabs an under specal conditions the heade of one tab has to be red so the user see that on that tab is an importent Information.
same problem here. which property in ClientAreaAppearance i have to set, that color the TabHeaderBackground changes?
I think, i'll stick to Appearance.ForeColor, when i chance this, it works the way i want, only the font color changes and not its background...
The ClientAreaAppearance properties should only affect the container area of the control (i.e. where the UltraTabPageControl is displayed).
I managed to style the tab in the attached image by setting the ultraTabControl1.ClientAreaAppearance.BackColor to Red, and the Appearance.BackColor of Tab1 and Tab2 to Blue and Green, respectively.
Chris
thank you dude, that worked for me! :)
trying to do this myself - I want the actual tab header coloured differenmtly for different tabs as per the above example but it's not working for me. My code is
switch (eventstage.Phase)
{
case "Outbound":
newtab.Appearance.BackColor = Color.Aquamarine;
break;
case "Outbound2":
case "Outbound3":
case "At Venue":
newtab.Appearance.BackColor = Color.LightGoldenrodYellow;
case "Inbound":
newtab.Appearance.BackColor = Color.LightSlateGray;
}
but this is changing the background color of the whole tab - I just want to change the tab header - the bit you click to switch tabs so that the user can see what 'phase' the type is displaying
Got a little closer - however I'd still like the client area to be the default color but my tab header is still not correct. I am displaying an image and text in the tab header but the new background color set for the tab only appears as a thin border with the rest of the tab remaining the original color???
Hello,
If you want to set the ClientArea's BackColor so it always looks like the default color, yet still matches the color based on the OS Theme, you can set it to SystemColors.Control. I believe that under most styles we look at SystemColors.
In regards to the approach of setting and image for the TabItem, try assigning the image to the ImageBackground property which should completely cover the UIElement.
I hope this helps.