Tab Control and SF Theme


Author
Message
Ben Hayat
Ben Hayat
Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 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
Replies
Ben Hayat
Ben Hayat
Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
Pump for an answer on the Tab control and theme!

..ßen
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
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 (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 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
Ben Hayat
Ben Hayat
Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 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
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
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 (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 reputation)Advanced StrataFrame User (946 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 (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
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.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Ben Hayat - 18 Years Ago
Trent L. Taylor - 18 Years Ago
Ben Hayat - 18 Years Ago
                 Pump for an answer on the Tab control and theme!
Ben Hayat - 18 Years Ago
Trent L. Taylor - 18 Years Ago
                         [quote]We use an Infragistics tab control and sub class it and then...
Ben Hayat - 18 Years Ago
                             At this point, the client does not want to use any third party tools...
Ben Hayat - 18 Years Ago
                                 [quote]When I place the Tab control, the pages within the tab control...
Trent L. Taylor - 18 Years Ago
                                     [quote]That TabControl is not Themed. If you look in the docs it will...
Ben Hayat - 18 Years Ago
                                         [quote]I know that, and that's why I'm asking if you could please add...
Trent L. Taylor - 18 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search