This is a migrated thread and some comments may be shown as answers.

RadThemeManager per form?

3 Answers 164 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bryan Brannon
Top achievements
Rank 2
Bryan Brannon asked on 15 Jul 2008, 02:09 PM
We are using the Q1 2008 RadControls for Winforms and need some clarification on how many RadThemeManagers per project.

If we have a project with multiple forms... do we need a RadThemeManager per form or can it be used application wide.  When we add a theme on one form, the IDE seems to persist the themes collection (in memory) on multiple forms but at runtime we get different results.

We also run into unexpected results when themes are loaded from Resources and the designer does not recognize anything has changed.  At runtime the theme shows up correctly but the designer decides not to paint the changes loaded from a resource.

Any changes coming down the pipe to resolve any theme manager changes?

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 17 Jul 2008, 02:09 PM
Hi Bryan Brannon,

Thank you for the question.

You can use only one RadThemeManager for the whole application. This RadThemeManager should be placed in the first form loaded at run-time. The themes loaded into it will be available for all the controls in the application.

The different results that you are getting at run-time are most probably due to the fact that you are loading a theme in a RadThemeManager, whose form is not loaded first in the application.

Regarding the design-time unexpected results, you probably have encountered a known issue concerning the theme display at design-time. Until the issue is resolved, please try the following workaround:
  1. Close the Form's design mode.
  2. Open the Form's text edit mode.
  3. Press F7 to open the design mode again.
  4. The themed controls should be displayed correctly.
If you have additional questions, feel free to contact me.

Best wishes,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Bryan Brannon
Top achievements
Rank 2
answered on 21 Jul 2008, 08:02 PM
I have a dynamically loaded Startup Form so in my ApplicationEvents.vb file, in MyApplication_Startup routine so I put the RadThemeManager (in code) there.

This seem to work for every control with a theme within my application however the "trick" for the designer does not work for me, nor do I see the theme names in the ThemeName dropdown in the properties or the smart tag.

Any idea what release the designer issues will be fixed?
0
Nikolay
Telerik team
answered on 25 Jul 2008, 09:08 AM
Hello Bryan,

I have logged this issue but unfortunately, I cannot provide you with a specific time-frame when this issue will be addressed.

If you have other questions, feel free to contact me.

Greetings,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Bryan Brannon
Top achievements
Rank 2
Answers by
Nikolay
Telerik team
Bryan Brannon
Top achievements
Rank 2
Share this question
or