Themes not loading correctly

10 posts, 0 answers
  1. Jill-Connie Lorentsen
    Jill-Connie Lorentsen avatar
    118 posts
    Member since:
    Nov 2008

    Posted 18 May 2009 Link to this post

    I've tried following the documentation at http://www.telerik.com/help/winforms/vsb_thememanagerloadresource.html to find a solution to thie following problem, but without any luck, so I hope someone can help.

    I have a MyTheme.xml file, which I've added to Resources and set Build action to Embedded Resource.

    I use the radThemeManager to load it, and I've tried loading it both as file and as resource, but I experience problems in both cases.

    If I load the theme as a file, I get an error at startup, but it looks like the theme is applied correctly to my controls.

    If I load the theme as a resource, I don't get the error, but the theme is not applied correctly, and my controls have weird shapes and colours. This only appear at run time, at design time everything looks fine.

    I suspect there is something wrong in my theme location. My UserContol project is in a namespace called MyCompany.MyControls. Is the name of the theme location 
            MyCompany.MyContols.MyUserControl.MyTheme.xml
    or     MyCompany.MyContols.MyTheme.xml
    or something else?

    In which folder do I place the MyTheme.xml file? Does it matter, as long as it is added as a resource?

    Thank you!

    Regards, Jill-Connie Lorentsen
       
  2. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 20 May 2009 Link to this post

    Hello Jill-Connie Lorentsen,

    Please refer to the following Knowledge Base article for additional information on loading custom themes: Adding custom redistributable themes to your applications. Generally, the resource path to a custom theme follows this pattern:  ProjectDefaultNamespace.Folder.FileName.Extension. You can find which is the default namespace of a project by right-clicking on the project node in the Solution Explorer tree and then choosing Properties. The Default namespace could be found under the Application tab.

    I hope this helps. If you still has issues with loading your custom theme, please send me a sample project. This will allow me to investigate your case in details and provide you with accurate assistance.

    Kind regards,
    Nikolay
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Josue
    Josue avatar
    17 posts
    Member since:
    Mar 2009

    Posted 22 May 2009 Link to this post

    Hi,

    I'm having the same problem as Jill, I'm trying to add a custom theme by resource and in design it works fine, and I verified the theme Location and its correct. But at run-time the theme doesn't show it just show the original blue theme. Please if you could resolve this or someone please post what you do to fix it. Thanks.
  5. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 22 May 2009 Link to this post

    Hello Josue,

    If the theme is loaded correctly at design-time, but it is not loaded runtime, there are two things which may cause such behavior:
    • Incorrect resource path. Please double-read the this Knowledge Base article.
    • Make sure that the xml theme Build Action is set to Embedded Resource.

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

    Greetings,

    Nikolay
    the Telerik team

     


    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Josue
    Josue avatar
    17 posts
    Member since:
    Mar 2009

    Posted 22 May 2009 Link to this post

    Hi,

    I had verified everything, the XML had the Build Action in Embedded Resource. The path I had verified too, to me it seems as correct, it has  "ProjectDefaultNameSpace.Folder.ThemeName.Extension". The radThemManager shows the ThemeStorageValue as True and also the Reflector show it as a Resource. and still doesn't show at the run-time. The only thing I have done differently from the demo is that I added the controls first and then added the ThemeManager, then assign them the Theme as File and then change it to Resource. Please let me know if you need something else.
  7. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 25 May 2009 Link to this post

    Hi Josue,

    Please open a new support ticket and send me a sample project reproducing the issue. This will allow me to help you further.

    Regards,
    Nikolay
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  8. Jill-Connie Lorentsen
    Jill-Connie Lorentsen avatar
    118 posts
    Member since:
    Nov 2008

    Posted 02 Jun 2009 Link to this post

    Hello Josue and Nikolay!

    Has a support ticket been opened for this problem? If so, is there a way for me (and others) to follow and see the outcome?

    Regards,
    Jill-Connie Lorentsen
  9. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 02 Jun 2009 Link to this post

    Hello Jill-Connie Lorentsen,

    No support ticket was opened by Josue for the theme issue. However, you can open a support ticket and send us a sample project where a custom theme is loaded. This will allow me to analyze your case and provide you with further assistance. Then, I can make the outcome public in order to help the others who have the same issue.

    Best wishes,
    Nikolay
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  10. Thomas
    Thomas avatar
    1 posts
    Member since:
    Jan 2013

    Posted 14 Jan 2013 Link to this post

    Can you please direct me to the support ticket where this issue is resolved. I have a support ticket open for this same issue. 

    Thanks,
    Thomas
  11. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 16 Jan 2013 Link to this post

    Hello Thomas,

    No support tickets have been opened for the issue experienced by Jill-Connie and Josue regarding their cases. I noticed, however, that you have opened a ticket regarding your case. You will be able to find our answer for your case there.

    All the best,
    Nikolay
    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Back to Top
UI for WinForms is Visual Studio 2017 Ready