Hi,
I need to have a transparent UltraLabel on UltraPanel with Gradient. Currently, the problem is UltraLabel shows the background color of the form and I need it to be transparent so that 'ugly' white background will go away.
Thanks in advance,
There is no property. Many properties influence the colors, so the colors are resolved via a method:
AppearanceData appData = new AppearanceData(); AppearancePropFlags flags = AppearancePropFlags.AllRender; this.ultraTabControl1.Tabs[0].ResolveAppearance(ref appData, flags); Debug.WriteLine(appData.BackColor, "BackColor"); Debug.WriteLine(appData.ForeColor, "ForeColor");
Note that this will not be accurate unless you have turned off themes. There is no way to get the themed colors as far as I know.
I figured as much. Do you happen to know which property on the tab control has the resolved appearance? I tried to use TabHeaderAreaApperance but it is just default values.
Transparency will only work if the label is contained by the Tab control. It has to actually be contained within the Controls collection of a parent control - not just positioned on top of it in the ZOrder. So I don't think there is any way to do this.
The best you could do is set the BackColor on the label to the resolved backcolor of the tab.
I have a similar problem except I am not dropping the label on top of a picture box, but rather on top of ultratabcontrol's tab header.
Is there a way to get the ultralabel to show the tab header's color?
Mike,
Thanks again for your help! I dropped the PictureBox and used an UltraPanel in its place. Then, I used an UltraLabel on top of that. I set the Appearance.ImageBackground property of the UltraPanel to my image and then set the AlphaLevel of the UltraLabel to 250 to get the transparent label background that I was looking for. This works great!
Thanks!
Keith