StrataFrame Forum

Tab Control and SF Theme

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

By Ben Hayat - 5/21/2007

How do you get the Tab Control's body to follow the the SF Theme system?



to SF Team: During class on Chapter 18, we kept getting an error on the designer after running the app:

a) Which control cased the error?

b) How did you refresh the screen to get the form back (I'm going through the material now and I can't get to bring back the form)?



Thanks!
By Trent L. Taylor - 5/21/2007

a) Which control cased the error?

This is not control specific but rather dependent more upon how a form designer and tabs interact with one another.  But the problem in that example started after the custom user control was dropped on the form.

How did you refresh the screen to get the form back (I'm going through the material now and I can't get to bring back the form)?

Just close the form designer and then open it back up.  That is all.  If you are getting some other error or if this doesn't resolve the problem then you are more than likely dealing with something else.

By Ben Hayat - 5/21/2007

Thanks Trent; I was wondering which control caused it. The Custom control;



BTW, you forgot to answer my main question about the tab control and Theme application. How do you get the tab control pages to follow the color of theme?
By Ben Hayat - 5/22/2007

Pump for an answer on the Tab control and theme!
By Trent L. Taylor - 5/22/2007

How do you get the tab control pages to follow the color of theme?

We use an Infragistics tab control and sub class it and then set the appropriate properties from the ApplicationTheme.ThemeProperties properties.  This way the tab will follow themes and the inherited tab control can just be dropped on any form from that point on.  This is one of the controls you would want to setup in your UI assembly that we talked about during class.

By Ben Hayat - 5/22/2007

We use an Infragistics tab control and sub class it and then set the appropriate properties from the ApplicationTheme.ThemeProperties properties. This way the tab will follow themes and the inherited tab control can just be dropped on any form from that point on. This is one of the controls you would want to setup in your UI assembly that we talked about during class.




I think we're talking about two different things. You know how you have a series of controls that are tied to SF Theme system (i.e. ThemeForm, BrowseDialog, ThemePanel, ThemeDetailWindow and etc.). So you also have a TabControl on SF toolbox. When I place the Tab control, the pages within the tab control do not follow the theme. And there are no properties to set the theme.



I'm not so concern about the top part but more like the body and the pages you have.



Thanks!


By Ben Hayat - 5/22/2007

At this point, the client does not want to use any third party tools for UI, any possibility you can make MS TabControl Themeable like the others mentioned above. I really need to use tabcontrol to divide up the contents and the tab control doesn't match with the rest of the page that already has theme.



Pleeeeeeeeeeease! Smile
By Trent L. Taylor - 5/22/2007

When I place the Tab control, the pages within the tab control do not follow the theme.

That TabControl is not Themed.  If you look in the docs it will give you a list of all of the controls (as does the training material in the APplicationThemes section) that have Theme support.  What we do is use the new ThemedLinkmenu control and a Panelmanager (we did this in the UI sample we created in class) and create a vertical page tab.

By Ben Hayat - 5/22/2007

That TabControl is not Themed. If you look in the docs it will give you a list of all of the controls (as does the training material in the APplicationThemes section) that have Theme support.




I know that, and that's why I'm asking if you could please add it to the theme list.



What we do is use the new ThemedLinkmenu control and a Panelmanager (we did this in the UI sample we created in class) and create a vertical page tab.


Actually, I'm almost finished with going through all the class docs and samples and have reviewed that option several times to split the pages. But Tab Controls seem to be more efficient and quicker to setup.
By Trent L. Taylor - 5/22/2007

I know that, and that's why I'm asking if you could please add it to the theme list.

No.  This control will more than likely never be on the themed list as the standard .NET tab control has some inherant issues in order to do this.  At some point we will have a tab control, but may not happen for some time.