Tab Control and SF Theme


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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.

Ben Hayat
Ben Hayat
Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
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.

..ßen
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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.

Ben Hayat
Ben Hayat
Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
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

..ßen
Ben Hayat
Ben Hayat
Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
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!




..ßen
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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.

Ben Hayat
Ben Hayat
Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
Pump for an answer on the Tab control and theme!

..ßen
Ben Hayat
Ben Hayat
Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
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?

..ßen
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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.

Ben Hayat
Ben Hayat
Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)Advanced StrataFrame User (516 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
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!

..ßen
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search