RadTitleBar on ShapedForm: Theme problem

2 posts, 0 answers
  1. Matthias Schuster
    Matthias Schuster avatar
    7 posts
    Member since:
    Jun 2004

    Posted 02 Mar 2009 Link to this post


    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!
  2. Nikolay
    Nikolay avatar
    1802 posts

    Posted 25 Mar 2009 Link to this post

    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,
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. DevCraft banner
Back to Top