Themes from Radcolordialog

7 posts, 0 answers
  1. Divya
    Divya avatar
    47 posts
    Member since:
    Mar 2011

    Posted 27 Apr 2011 Link to this post

    Hi,
                 I hav used RadColorDialog ,on the click of a button i will show this radcolordialog and from it i select a color.Now i want the selected color to add to the themeslist so that  i can use that color has my   theme to be applied to my application .How can i do this .....


    Thanks
    Divya

             
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 02 May 2011 Link to this post

    Hello Divya,

    Thank you for writing.

    I am not quite sure that I understand your requirement. Could you please try paraphrasing your requirement so I can provide you with adequate support?

    If you are trying to set the color which you have previously selected in RadColorDialog to override the theme color, please consider the following help articles:

    I am looking forward to your reply.

    Best wishes,
    Stefan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Divya
    Divya avatar
    47 posts
    Member since:
    Mar 2011

    Posted 02 May 2011 Link to this post

    Hi,
             Yes as u understood ,i want the selected color from the radcolordialog to be applied to my entire application
    how can i do this....


    earlier like if i want office colors i was writing this

    ThemeResolutionService

     

     

    .ApplyThemeToControlTree(this, "Office2007Silver"); so that silver color was applied to my entire application


    in the same way when i select a color from radcolordialog that color shld be applied



    Thanks
    Divya


     

  5. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 05 May 2011 Link to this post

    Hi Divya,

    Thank you for writing.

    Themes and colors are different things. Themes are complex property settings to all our controls and when you apply one of the predefined themes, the entire application gets the look and feel defined in the theme. This is why you can not select a color in the color dialog and expect it to be applied to the application.

    However, there is a possibility, where you set a certain theme and you can change its base color using the ColorBlending mechanism. Please refer to this help article, which demonstrates how can you use this mechanism.

    I hope that this will work for you. Should you have any other questions, do not hesitate to contact us.
     
    All the best,
    Stefan
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
  6. Divya
    Divya avatar
    47 posts
    Member since:
    Mar 2011

    Posted 06 May 2011 Link to this post

    Hi

              Wt u explained me i understand but for every each color i cant create separate  themes na ............so please can u post me a sample how to override colorblending concept


    Thanks
    Divya
  7. Divya
    Divya avatar
    47 posts
    Member since:
    Mar 2011

    Posted 10 May 2011 Link to this post

    Hi,
                     If possible can u post me the code regarding colorblending concept  r send me  a sample ....



    Thanks
    Divya
  8. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 10 May 2011 Link to this post

    Hi Divya,

    Thank you for writing back.

    The color blending takes a specified color from the current theme and changes it to another specified color. For example, take the silver color of the Office2007Silver theme and change it to orange. Please refer to the attached video. 

    As far as I understand, this is exactly what you want - to change the main color of a theme. Otherwise, if you want to change other color as well, you have to edit the theme(s) and change them accordingly.

    Let me know if this works for you and whether I understood your requirement correctly.

    All the best,
    Stefan
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Back to Top
UI for WinForms is Visual Studio 2017 Ready