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

RadTitleBar on ShapedForm: Theme problem

1 Answer 59 Views
ShapedForm
This is a migrated thread and some comments may be shown as answers.
Matthias Schuster
Top achievements
Rank 1
Matthias Schuster asked on 02 Mar 2009, 03:54 PM
Hi,

I have the problem theming a RadTitleBar on a ShapedForm.

What I did:
0. created a new default WinForm-Project
1. added all the Telerik-dlls to the project and changed the Form to a ShapedForm
2. added a RadTitleBar
3. added the file RadTitleBarVista.xml from the Telerik VS2008 C# Examples project as a embedded resource.
4. added a RadThemeManager and added the xml-file to it (StorageType: Resource)
5. selected the now appearing Vista-theme to the RadTitleBar: the design view changed and the RadTitleBar has the Vista-Theme applied.
6. Compiled and started the application: The RadTitleBar now has the Office2007Blue or default-theme(???)
7. I also tried setting the ThemeName to "Vista" in the FormLoad-Method with no effect.

Fyi, I'm using VS 2008 on Vista (32 bit).

How can I get the Vista-Theme on the RadTitleBar? What am I doing wrong?

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 25 Mar 2009, 02:12 PM
Hello Matthias Schuster,

Please excuse us for the delayed response. We had an issue with our site, related to the "RadForms for WinForms" section, which did not alerts us when new tickets have arrived. The issue is now addressed and I am ready to answer your question.

Generally, you should not have any issues with the RadTitleBarVista theme file regarding the steps that you have followed. Since you have your theme's Build Action set to Embedded Resource, the other possible reason for the observed behavior is that you have a typo in your RootNamespace defining the path for the theme resource file.

I am attaching a sample project made according to the steps you described. As you will notice, the Vista theme is correctly shown runtime.

In addition, I want to inform you that in Q1 2009 we included the Vista theme for RadTitleBar in our Vista theme component. So, you do not need to use the theme provided in the Examples, but you can simply drag the Vista component and use its RadTitleBar theme.

I hope this helps. If you have additional questions, feel free to contact me.

Sincerely yours,
Nikolay
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
ShapedForm
Asked by
Matthias Schuster
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or