StrataFrame Forum

User control backcolor

http://forum.strataframe.net/Topic7684.aspx

By Chan - 3/24/2007

Hi,

I have user controls placed on panel page. The user control backcolor was "transparent". However, recently, I found that my user controls are "control" color. I can't remember it happened after I upgrade to SF 1.6/VS SP1.

Any ideas?

Thank you

By Trent L. Taylor - 3/25/2007

It depends on what controls you are referring to.  A user control, by default, does not support the transparent back color.  Are you referring to some StrataFrame controls or a custom control you created?  If you are referring to the SF controls, then nothing has changed. 
By Chan - 3/26/2007

Hi,

I finally found that, my panel page is not transparent. Even though I placed themedpanel to panelmanager.

ANy ideas??

Thank you

By Trent L. Taylor - 3/26/2007

Panel pages sit inside of a PanelManager control.  So if you make the panels transparent the PanelManager still has a control color.  If you are trying to make it transparent all the way back to the form then you have to make every control from the inside out transparent.  Off of the top of my head though, the PanelManager control may not support transparent backcolors.  So in this case it would not work anyway.
By Chan - 3/26/2007

Hi,

Anyway to set panel to respect theme?

Thank you

By Trent L. Taylor - 3/26/2007

Yes, use the ThemedPanel control...that is the entire point of this control.  For more information about Themes look at the documentation and the ApplicationThemes sample that comes with the framework.  This will give you a better idea of how to implement application themes within your applications.

Note: The PanelManager pages inherit off of the ThemedPanel control.